HenrikJoreteg / redux-bundler

Compose a Redux store out of smaller bundles of functionality.
https://reduxbundler.com
583 stars 46 forks source link

Run Store + bundles in a worker? #2

Closed developit closed 6 years ago

developit commented 6 years ago

The use of strings for selectors and actions in connect() would make for a really nicely optimized worker boundary, better than Stockroom has been able to pull off. Any thoughts on how one might push redux and bundled actions into a worker?

HenrikJoreteg commented 6 years ago

I'll work on putting together an example app when I get a chance. This is actually how I started building the app I just shipped, but ended up backing it out because I was using Firebase and running it in a worker, while it seemed to work, isn't officially supported and plus, it just felt kinda risky to do something more experimental like this in an app that's handling real financial transactions. So I backed it out, but... it's certainly doable.

HenrikJoreteg commented 6 years ago

Still needs some cleanup, it's double diffing, but... nearly ready to share :)

screen shot 2018-01-26 at 11 16 49 pm

HenrikJoreteg commented 6 years ago

Here's the code: https://github.com/HenrikJoreteg/redux-bundler-worker-example Here's the deployed app: https://redux-bundler-worker.netlify.com/