Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch an action outside of ngZone #565

Closed
2 of 8 tasks
s-uds opened this issue Dec 11, 2019 · 1 comment
Closed
2 of 8 tasks

Dispatch an action outside of ngZone #565

s-uds opened this issue Dec 11, 2019 · 1 comment

Comments

@s-uds
Copy link

s-uds commented Dec 11, 2019

This is a...

  • feature request
  • bug report
  • [] usage question

What toolchain are you using for transpilation/bundling?

  • @angular/cli
  • Custom @ngTools/webpack
  • Raw ngc
  • SystemJS
  • Rollup
  • Other

Environment

NodeJS Version: 13.1.0
Typescript Version: 3.4.5
Angular Version: 8.2.8
@angular-redux/store version: 10.0.0
@angular/cli version: 8.3.6
OS: macOS Mojave

Expected Behaviour:

Hi,

I noticed that dispatch() checks if in the Angular zone or not and always calls ngZone.run if not (source: https://github.com/angular-redux/store/blob/master/src/components/root-store.ts#L83).

However, I wish to dispatch an action from a zone.runOutsideAngular() statement (much like described here: ngxs/store#487)

Is there any known workaround for this? Could it be featured as an additional option (like: ngxs/store#487 (comment))

Thanks a lot!

@s-uds
Copy link
Author

s-uds commented Dec 12, 2019

Realizing this repository is deprecated, I duplicated the issue to the appropriate repo.

@s-uds s-uds closed this as completed Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant