So I am attempting to incorporate aurelia-store into a project I am working on.
I have it working in standard view/viewmodel interactions, and I can subscribe an action in a service class to update values, but I can’t seem to figure out how to get access to the store values in the service class.
I am trying to retrieve for instance, the user id so that I can call the backend api to get profile information on that id.
connectTo obviously doesn’t work as there is no binding event on a plain class, and I tried the subscribing as shown in the documentation, but the state was never updated (I could navigate the store object and see the correct data was actually there when it was updated)
Anyone have a code example of how to connect up to the state values, or do I just need to locally hold those values, and just update the store from service classes?