Replies: 2 comments
-
If I understand correctly, with the new features from React v19 such as server functions and |
Beta Was this translation helpful? Give feedback.
0 replies
-
Similar to this consolidation maybe: |
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
Uh oh!
There was an error while loading. Please reload this page.
-
After using Remix for two years, I consistently choose
useFetcher
over<Form>
despite Remix's guidance, as fetchers provide direct references to submission state. I find the distinction between navigating and non-navigating fetches inadequate.More often than not, the navigating nature of an action is unpredictable. For example, an action might check if the user is signed in - redirecting to /sign-in if not (navigating) - before increasing a counter (non-navigating).
I believe the coexistence of both
<Form>
anduseFetcher
is unnecessary, asuseFetcher
's direct reference model provides a superior design. I suggest that<Form>
be abandoned and its navigation optimizations be integrated into the fetcher API.Note: I was perfectly content with my approach until Remix silently removed the
replace
prop from<useFetcher.Form>
, limiting history stack control.Beta Was this translation helpful? Give feedback.
All reactions