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
Hi @brunoscopelliti currently the app settings mechanism is designed to be a single key to a single value store, and so things like app.extend are out of scope of the current design. That doesn't mean the design can't be changed, but it was a known stopping point when settings were made to not support that.
I'm going to leave this as the start of a discussion here on if this should actually be something supported.
At it's core, it's not really much more than app.set('foo', Object.assign(app.get('foo') || {}, { foo: 'bar' })) but without the flexibility to perform your own merge strategies, it just seems more complexity into core than it's worth... This issue is stale at this point, so just closing as stale. Don't take that as a definite "no", but more like we're not going to focus on this in the near term.
Sorry if this was asked before, but I didn't find anything.
app.set
always replace the whole field.Sometimes we might want to only update certain properties.
I would like the above snippet to act like:
Is there any interest in having a such utility exposed such as
app.extend
(or whatever else), so that it would be possible to write:Eventually I could submit a PR.
The text was updated successfully, but these errors were encountered: