Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear introduction on documentation website #41

Open
Jab0rnal opened this issue Aug 11, 2020 · 0 comments
Open

Unclear introduction on documentation website #41

Jab0rnal opened this issue Aug 11, 2020 · 0 comments

Comments

@Jab0rnal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant