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
I need to import this at my work app to be able to correctly type the props of a component which receives the fetcher as a prop, because I need the parent to know the state of that fetcher.
I see no reason to don't export this type from @remix-run/react directly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
There's a Fetcher type which is the return value of the useFetcher hook. Right now it's not exported and if you need it to must import it as.
I need to import this at my work app to be able to correctly type the props of a component which receives the fetcher as a prop, because I need the parent to know the state of that fetcher.
I see no reason to don't export this type from
@remix-run/react
directly.Beta Was this translation helpful? Give feedback.
All reactions