-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Involving Database #640
Comments
A database would traditionally be handled on the server, and accessed via HTTP calls to an API that's hosted on the server and calls the DB. You can store data on the client via localStorage, but you probably want a real database. Since a database is a server-side concern, it's deliberately left out of Slingshot. |
K make sense. I would like to hear your opinion on what is the best practice. Anyway amazing course cheers. |
API calls are traditionally made from your actions, using Redux-thunk or an alternative middleware. |
And thanks for the kind feedback! |
Hey it was great if you could involve database in this example.
I'm following your course on Pluralsight and it's not clear to me where I should put database update If I would like to persist my store.
At first I thought it should be in the reducers but you said we should keep it pure and use only for states updates.
I'm a newbie in react.
The text was updated successfully, but these errors were encountered: