reatom icon indicating copy to clipboard operation
reatom copied to clipboard

Router package

Open artalar opened this issue 2 years ago • 4 comments

We need a router package for the web. Simple, type-safe, scalable (it easy with Reatom). I think the best base, which we could fork and reuse is https://github.com/nanostores/router.

What we need:

  • fork and rewrite nanostores/router to Reatom
  • add and sync https://www.reatom.dev/packages/undo
  • Add block API (https://github.com/remix-run/history/blob/dev/docs/blocking-transitions.md)
  • Add transition API - the block for a particular route (for prefetching / animations)
  • Improve API - each route should includes all needed APIs: go, isCurrent...?

Let me know if you could handle even the first task, it would be helpful.

Another resources.

  • https://github.com/lukeed/regexparam

artalar avatar Feb 08 '23 17:02 artalar

@artalar hi there!

I want to help with the first task at least. If it will be ok we can move further together. It is very interesting for me.

NB: I am familiar with Reatom only as spectator and reader.

Can I get fork and rewrite nanostores/router to Reatom?

vostrik avatar Feb 09 '23 08:02 vostrik

@vostrik yep, take it! Write me DM for any questions.

artalar avatar Feb 09 '23 08:02 artalar

@vostrik any news? =D

artalar avatar Mar 01 '23 06:03 artalar

Yo! I have already dive to the topic. I think that it will take a couple of weeks for the first demo.

vostrik avatar Mar 02 '23 07:03 vostrik