useLoaderData hook require an object #100
Closed
mauscoelho
started this conversation in
General
Replies: 1 comment
-
This is expected, if you want to use the default values use the Remix useLoaderData hook and the json function instead since there'll be no difference. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it expected to be like this?
Currently, I need to explicitly pass an empty object to be able to use
useLoaderData
with default values.Beta Was this translation helpful? Give feedback.
All reactions