You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you call the second argument as a component, not a function:
122
+
123
+
```tsx
124
+
{
125
+
onFetching: (props, Component) => (
126
+
<divclassName="relative-wrapper">
127
+
<Component />
128
+
<LoadingOverlay />
129
+
</div>
130
+
);
131
+
}
132
+
```
120
133
121
134
## withLoader
122
135
@@ -255,4 +268,4 @@ type TestTwo = InferLoaderData<typeof extendedTwo>;
255
268
// which is correct.
256
269
```
257
270
258
-
> This is just a type mistake that will hopefully be fixed in the future. Both `extendedOne` and `extendedTwo` return the same format, but `extendedTwo` has the correct types.
271
+
> This is just a type mistake that will hopefully be fixed in the future. Both `extendedOne` and `extendedTwo` return the same format, but `extendedTwo` has the correct types.
0 commit comments