You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(If it's not a bug please guide me in the right direction on how to implement such scenario. Thank you)
I have an application with 2 lazy loaded modules (feature-1, feature-2) and module with state (my-lib) which is used in both. Attachments module requires provider MY_LIB_DATA_PROVIDER to grab data and put it in my-lib module state. Feature-1 and Feature-2 modules provides their implementations inside them
click on feature 1 and feature 2 links
and watch the values "From MY_LIB_DATA_PROVIDER" and "From state"
they should be the same on feature 1 and feature 2 modules but they are different
This discussion was converted from issue #1946 on December 10, 2022 21:15.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Affected Package
@ngxs/store
Description
(If it's not a bug please guide me in the right direction on how to implement such scenario. Thank you)
I have an application with 2 lazy loaded modules (feature-1, feature-2) and module with state (my-lib) which is used in both.
Attachments module requires provider MY_LIB_DATA_PROVIDER to grab data and put it in my-lib module state.
Feature-1 and Feature-2 modules provides their implementations inside them
Diagram
🔬 Minimal Reproduction
click on feature 1 and feature 2 links
and watch the values "From MY_LIB_DATA_PROVIDER" and "From state"
they should be the same on feature 1 and feature 2 modules but they are different
https://stackblitz.com/edit/angular-ngxs-di
🔥 Exception or Error
No exception just works incorrectly
Environment
Beta Was this translation helpful? Give feedback.
All reactions