
When you submit a new message board thing, it doesn't redirect to that newly created thing after it's done.
I am returning a redirect
in the action, but that is now returned as a full response. How do I just get the relevant redirect data on the client, so the client can do the redirect?
Or is it better to send over the data from the server and skip another loader?
Right now each loader (ie if you have nested routes) makes a seperate fetch
call and I combine all their keys.
Ideally we should make a single loader call per navigation event, and set the internal router state, not that one loader's state.
The example uses query
which seems to skip the SSR piece and only to the loader/action piece, which is exactly what I'd want... if it worked for me.
- Get OpenTownie or Gemini or Claude or OpenAI to synthesize the core of these patterns into a prompt we can use to make more ReactRouter apps, such as...
- Convert this or into the basic react router guest book (and preserve this forum app in another project?)
- To what extent can these patterns be packaged up into a Val Town Router project? Would be neat to get the version pinning thing all centralized, can this as-a-library be that centralized place?