FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrousereactRouter7Example
Full-stack example ReactRouter7 project
Public
Like
3
reactRouter7Example
Home
Code
6
backend
2
frontend
3
routes
10
shared
2
README.md
TODO.md
Branches
4
Pull requests
1
Remixes
2
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
TODO.md
Code
/
TODO.md
Search
4/10/2025
Viewing readonly version of main branch: v139
View latest version
TODO.md

Remix questions

Action redirects

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?

Setting loader state for multiple loaders

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.

Shoud I use queryRoute instead of query in my server?

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.

Other todos

  • 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?
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.