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

Get the entire State in anonymous functions #42

Open
seiyria opened this issue Jan 10, 2023 · 0 comments
Open

Get the entire State in anonymous functions #42

seiyria opened this issue Jan 10, 2023 · 0 comments

Comments

@seiyria
Copy link

seiyria commented Jan 10, 2023

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => https://github.com/ngxs/store/blob/master/CONTRIBUTING.md
[ ] Other... Please describe:

Current behavior

Right now, if I wanted to get the entire state, I would need to not use an anonymous function and instead attach the function to a class that has access to Store.

Expected behavior

I would like a way to get the entire state for when I need to do cross-state things. Otherwise, I need to do awkward things like have some of the functions attached, and some of them on the state.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

This would let users continue to fully utilize anonymous functions instead of having to do a hybrid approach.

Environment


Libs:
- @angular/core version: ^15.0.0
- @ngxs/store version: ^3.7.6


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

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