question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to get only the changed data in createViewModel

See original GitHub issue

Currently, according to docs, createViewModel has only isPropertyDirty(propName)

Is it possible to add an option to get all changed props (hopefully with the data)

looking at https://github.com/mobxjs/mobx-utils/blob/c1d82ef88d0c2ee77f6a31e6dccde536c570fe44/src/create-view-model.ts#L65 we can just open an option to get localValues back.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
apsavincommented, Feb 20, 2019

LGTM, thanks!

0reactions
mweststratecommented, Mar 4, 2019

Released as 5.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Way to Update only modified fields with Entity Framework
I know it can be achieve by "mapping columns one by one" or by creating "hidden fields for those remaining 25 columns". Just...
Read more >
Component registration - Knockout.js
For Knockout to be able to load and instantiate your components, you must register them using ko.components.register , providing a configuration as ...
Read more >
Saved State module for ViewModel - Android Developers
Caution: SavedStateHandle only saves data written to it when the Activity is ... When the key's value is updated, the LiveData receives the...
Read more >
Recommended Ways To Create ViewModel or ...
There are few ways to create ViewModel and AndroidViewModel . This article shows you the Kotlin examples of creating them.
Read more >
How ViewModels Work on Android - Better Programming
The activity or the fragment should be able to observe changes in the ViewModel . ... ViewModel 's only responsibility is to manage...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found