Get the current state
After creating a store, you can now consume it into your application. To get the current state, you need to use the copy
method of the store.
your-controller.ts
copy
always returns a new copy of the state. Any direct changes in the state copy will not affect the original state of the store.
Last updated