Rex E.
1.4K posts


an extra tab has been added to showcase how global state solves the problem in the same nextjs project: next-tabs.vercel.app
English

implementation is complete: react-router-tabs.vercel.app
verdict: react-router does not automatically solve the problem of state persistence across routes
what does solve the problem is a global state management solution
next-js will live to see more days in this project 🤝
Rex E.@ken_t_rex
back. this close 🤏🏾 to migrating an entire project from next.js to react-router
English

final decider will be if I can implement this in react-router with no hacks and have client state preserved through and through
next-tabs.vercel.app
English

@colinhacks You could achieve a crude CMD+F across pages with an inverted-index of your site.
I considered building this, but placed on hold for now!
In the meanwhile here’s a blog post with a basic client-side implementation:
rexforde.com/blog/react-fas…
English

@rauchg looks great! Is this opt-in? And does it work with the Link component? This is a hack I put together to try to achieve persistent routes, but I think it should be easier?
next-tabs.vercel.app
English

The new vercel.com/blog uses some cool @nextjs app router features:
• shared persistent layout with animations
• /changelog 'breaks out' of the /blog nav hierarchy
English

@jal_eelll @nextjs Nice! I think the Promise.all call has to be inside the suspense boundary for this to work? Or is that wrong?
English

Realizing React.cache is like React.ref but for server components, while implementing per-request context for @featurevisor for easier DX in Next.js apps👌
English

hey @leeerob 👋🏾. how would you approach persistent routes in Next.js (similar to persistent layouts as we have today)?
After searching, I put together a solution with Parallel Routes, and CSS `display` but it has a few rough edges.
have any alternatives/tips for this? 🙏🏾
English

@threepointone @genmon Yea. Most web apps should implement CMD+K support.
It can be a huge productivity boost!
English

@devagrawal09 i feel (or felt) your pain before! what framework you using with it, and are you using CDK?
English










