The state of the application is managed by plain Javascript Object: we refer to it as the global state. It’s dedicated to:
- Keep track of the completion of the pathways by the user.
- Keep track of the state variable defined at the protocol level.
- Store the defined metadata required by each protocol
- Allow the UI to trigger the right event when needed.