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
As seen in the above code, since only LoaderFunctionArgs is used during type inference and ClientLoaderFunctionArgs is not used, the return type of a clientLoader with parameter of ClientLoaderFunctionArgs type is always never. (the same applies to clientAction)
If this is intentional, what is the reason behind it?
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
-
remix/packages/remix-react/future/single-fetch.d.ts
Lines 37 to 61 in f72d268
As seen in the above code, since only
LoaderFunctionArgs
is used during type inference andClientLoaderFunctionArgs
is not used, the return type of aclientLoader
with parameter ofClientLoaderFunctionArgs
type is alwaysnever
. (the same applies toclientAction
)If this is intentional, what is the reason behind it?
Beta Was this translation helpful? Give feedback.
All reactions