Course lesson
Use lifecycle hooks in the NGRX signal store to manage your store's state when it's initialized and destroyed.
Use lifecycle hooks in the NGRX signal store to manage your store's state when it's initialized and destroyed.
In this example, you'll see how we can use the onInit hook to load a list of employees when the store is initialized with its associated component.
Course lesson
Use lifecycle hooks in the NGRX signal store to manage your store's state when it's initialized and destroyed.