Add an example of updating state in response to an asynchronous event.
I've written this example, since I was confused when learning Mercury as to how to update state in response to an event that doesn't emanate from the UI (e.g. when an Ajax request finishes).
Note that npm test fails for me due to linting errors, but it also fails without my modifications, so I don't know if there's something wrong with my setup or what.
Add an example of updating state in response to an asynchronous event.
I've written this example, since I was confused when learning Mercury as to how to update state in response to an event that doesn't emanate from the UI (e.g. when an Ajax request finishes).
Note that
npm test
fails for me due to linting errors, but it also fails without my modifications, so I don't know if there's something wrong with my setup or what.