Web Worker Effects #3077
Replies: 9 comments
-
Oh this is interesting! For context: I have been working on an API proposal to make off-thread work much much easier/convenient. Please see the Explainer in the repository. @bfgeek and I have been working on a polyfill the last couple of days (still on a branch), but it’s close to being done so I’d love for y’all to test it out. |
Beta Was this translation helpful? Give feedback.
-
wouldn't the Angular worker, solve this?
you are the experts here anyways. |
Beta Was this translation helpful? Give feedback.
-
Maybe something like this would work with ngrx? https://blog.angularindepth.com/angular-with-web-workers-step-by-step-dc11d5872135 |
Beta Was this translation helpful? Give feedback.
-
Bump. Is there any official solution to use effects inside web workers? Or general integration with ngrx? |
Beta Was this translation helpful? Give feedback.
-
With Web Worker support landing in CLI, we should revisit this. |
Beta Was this translation helpful? Give feedback.
-
Now that the web workers have landed, should this be revisited? |
Beta Was this translation helpful? Give feedback.
-
I've been giving this idea a try, i'd like to share my approach:
By making my worker code a whole lot more ugly and bypassing any references to @ngrx, I managed to make this work. What needs to be done:
|
Beta Was this translation helpful? Give feedback.
-
This seems like an interesting project to pursue.
I'd be interested in working on this but would look to the maintainers for guidance on starting. |
Beta Was this translation helpful? Give feedback.
-
I just commented something about this issue in the other issue, i hope it helps |
Beta Was this translation helpful? Give feedback.
-
Migrating from effects#95 (cc @CoderCat84)
I like this idea, a lot, and we should make this A Thing. cc @jeffbcross @alxhub
Would be reasonably straightforward to use angular/core (for DI) run effects in the background, and implement a simple bridge API that handles piping actions to the appropriate remote thread.
cc @surma cuz this would probably be pretty neato with some of your API sketches...
Beta Was this translation helpful? Give feedback.
All reactions