Proposal: fetch prop for HydratedRouter
#15461
rossipedia
started this conversation in
Proposals
Replies: 2 comments 1 reply
|
Linking a lot of related things this would probably address:
|
0 replies
|
This would also handle adding formData fields (#11285, #14194), but not on a per-route level. Do you see a way to conveniently do this from |
1 reply
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.
HydratedRoutershould support afetchprop that allows you to customize thefetchimplementation used in Framework Mode for route data requests.RSCHydratedRouteralready provides this, so a) there's prior art and b) this would bring feature parity to both hydrated routers.It's also a pretty useful power-user escape hatch, allowing for several use cases that are currently hacky or difficult to implement:
Usage is exactly what you'd expect:
All reactions