💡 Local-first example of the Epic Stack #567
Replies: 5 comments 5 replies
-
Someone has offered $500 to whoever does this using https://reflect.net/ https://twitter.com/aboodman/status/1736205341833166878?t=R-Cj-7tU3kPFysDzg5pIcg&s=19 |
Beta Was this translation helpful? Give feedback.
-
https://github.com/rishi-raj-jain/epic-local cc @aboodman Claim for the reflect task! Note:
I can return the params from the clientLoader and achieve the same that I've right now using useParams. This repo showcases the local-first functionality for |
Beta Was this translation helpful? Give feedback.
-
@rishi-raj-jain this is ... epic (::groan::). Will review today and confirm, and if everything looks good, will send you that loot! |
Beta Was this translation helpful? Give feedback.
-
Hey @kentcdodds, How can one use GraphQL subscriptions with clientLoader to get realtime updates? Is it possible / makes sense to do so? cc @aboodman I do this right now as 👇
but wonder if there's a way to have clientLoader re-run or be reactive so that I don't need to go through custom setup of useState & useEffect |
Beta Was this translation helpful? Give feedback.
-
Some feedback 👇🏻 I had expected
Maybe https://remix.run/docs/en/main/route/client-loader should clearly indicate that it's not exactly a drop-in replacement? |
Beta Was this translation helpful? Give feedback.
-
Now that
clientLoader
andclientAction
are released, local-first development with Remix becomes much easier.I would love to see an example of the Epic Stack using a local-first approach (probably could use remix-owa as some inspiration).
There are two ways we could do this:
I'd love to see both as an example so if you're interested, feel free to do either approach. I recommend IndexDB as the client-side backend.
Don't worry so much about making it perfect (like migrations of IndexDB would be a fun challenge, but don't get hung up on that). Examples are just to demonstrate what's possible and give people interesting ideas.
This should be pretty fun and interesting. You don't need permission to start working on it. Just go for it. You'll find instructions on how to make an example in the docs.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions