You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just got this working as expected. However, it would have saved me an hour if the following was included somewhere in the introduction section.
The application state class (in your examples ToDo) must be injected into the DI container. As well as including cortex.net global state.
My action to mutate my state MUST have the [Action] attribute to work. If i do not then i get the following error message - Unhandled exception rendering component: Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component?
If these 2 things were made clear in the introduction then setup would have been a breeze.
Thanks,
Neil
The text was updated successfully, but these errors were encountered:
I've just got this working as expected. However, it would have saved me an hour if the following was included somewhere in the introduction section.
The application state class (in your examples ToDo) must be injected into the DI container. As well as including cortex.net global state.
My action to mutate my state MUST have the [Action] attribute to work. If i do not then i get the following error message - Unhandled exception rendering component: Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component?
If these 2 things were made clear in the introduction then setup would have been a breeze.
Thanks,
Neil
The text was updated successfully, but these errors were encountered: