We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple is better.
Having to write non mutating code can become tedious:
const item = state.find(item => item.id === payload.id); const index = state.indexOf(item); return [...state.slice(0, index), { ...item, selected: true }, ...state.slice(index + 1)]'
better to just pass an immer draft object and let the user mutate it, but still give immutable state updates.
const item = state.find(item => item.id === payload.id); item.selected = true; return state;
The text was updated successfully, but these errors were encountered:
BigAB
No branches or pull requests
Simple is better.
Having to write non mutating code can become tedious:
better to just pass an immer draft object and let the user mutate it, but still give immutable state updates.
The text was updated successfully, but these errors were encountered: