Replies: 1 comment 7 replies
-
Thanks @BenGrn. We've covered why this isn't a viable option |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In existing module-based libraries, features can be registered with a simple
StoreModule.forFeature(booksFeature)
andEffectsModule.forFeature(booksEffects)
in the imports array. This allows any application using this module/library to have that store active.In standalone applications and components, the following method is provided from within the application bootstrap:
provideState(booksFeature)
.This is an environmental provider and cannot be used within standalone components. We need a
provideFeature(booksFeature)
and aprovideFeatureEffects(booksEffects)
to allow standalone components to add store features, so libraries that require stores for use don't have an additional requirement of adding required features and effects to the application bootstrap. It's an additional step that could easily be missed and could add copious amounts of boiler plate code that should be added from the library implicitly.Beta Was this translation helpful? Give feedback.
All reactions