How to use useFetcher.Form in a child component? #14086
Unanswered
bouteillerAlan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a simple use case, but I can't find a way to make it work. I'm pretty sure I'm missing something here.
I have my route file with the action setup to get the data from the submit like the doc say to do it:
And I have the
LoginPage
component:I pass the
fetcher
to the children component via the props:But the
console.log
in theaction()
function tell me I havenull, null
. I try to setup thefetcher
with a customkey
but I have the same result, or an error if I try to load it in the action function withfetcher.data
.Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions