falcor icon indicating copy to clipboard operation
falcor copied to clipboard

model.withoutDataSource().set(...) does not trigger model._root.onChange

Open a9a4k opened this issue 10 years ago • 3 comments

Moreover model.withoudDataSource().set(...) does not increment cache verison

I saw it in this issue https://github.com/Netflix/falcor/issues/563 and also wondering what is the best way to set data locally.

a9a4k avatar Feb 19 '16 11:02 a9a4k

My current workaround is model.setCache(Object.assign(model.getCache(), data))

However this way all paths version is incremented

a9a4k avatar Feb 19 '16 11:02 a9a4k

Is there a way to update model locally but receive correct version numbers per paths (so only the paths that changed increment their verison)?

a9a4k avatar Feb 19 '16 11:02 a9a4k

+1

IlyasM avatar Feb 20 '16 19:02 IlyasM