ngxs-labs / select-snapshot

🌊 Flexibile decorator that allows to get a snapshot of the state
MIT License
42 stars 4 forks source link

fix: add store service cleanup #152

Closed vanmxpx closed 2 months ago

vanmxpx commented 1 year ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Reference to Store service object keeps after the module is destroyed.

Issue Number: #116

What is the new behavior?

Reference to Store service object clears after the module is destroyed. (same behavior as with "injector" reference)

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

XavierDupessey commented 1 year ago

Not sure who owns this project and could take a look, maybe @arturovt?

arturovt commented 1 year ago

Needs to be rebased on master. Also where the store is being set? I see it's initialized and set to null in both places.

vanmxpx commented 1 year ago

Needs to be rebased on master. Also where the store is being set? I see it's initialized and set to null in both places.

@arturovt You're right I've lost initialization

sorry but I broke the branch rebasing it to upstream so I'm forced to reopen pull request with all fixes here #154

this one can be discarded