"Redundant record update" warning is not useful sometimes #2619
ffigiel
started this conversation in
Ideas & suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working on a lustre app, I noticed how this warning often comes up in the
update
functionWhen building UIs, it's not uncommon to slowly add more features to the app over time. If I was to accept this hint and use the explicit record creation syntax, the app would become painful to manage, as each new field in the
State
type will require me to update all branches in theupdate
function.I don't know if this issue is going to be prevalent, but currently it is a bit annoying during development.
I could imagine an emergent (anti-?)pattern of adding a dummy field to the State just to mute this warning.
Let's wait and see how this develops.
Beta Was this translation helpful? Give feedback.
All reactions