Comments (6)
@michaelbpaulson @jhusain do you anticipate this has an impact on the set*asPathValues methods? If so, how should we compare leaves wrt to metadata and values? I remember we toyed around with this idea earlier on and decided against, because it's difficult to meaningfully diff unknown datasets without exposing a comparator (which I'm not necessarily against).
from falcor.
A comparator make sense to me. Otherwise we can use ===.
JH
On Apr 9, 2015, at 7:28 PM, Paul Taylor [email protected] wrote:
@michaelbpaulson @jhusain do you anticipate this has an impact on the set*asPathValues methods? If so, how should we compare leaves wrt to metadata and values? I remember we toyed around with this idea earlier on and decided against, because it's difficult to meaningfully diff unknown datasets without exposing a comparator (which I'm not necessarily against).
—
Reply to this email directly or view it on GitHub.
from falcor.
Falcor meeting:
@michaelbpaulson : In set toPathValues just doesn't make sense. get double everything you do.
@trxcllnt : set the things in the cache locally, do the network request and onNext what the network request returns
@michaelbpaulson : I want the set to occur immediately on the client. But weird to be onNexted twice when the server response comes back.
Needs more discussion as everyone seems a bit confused on how things are supposed to work.
from falcor.
The right answer here is to dedupe values. Only onNext when value changes after server response comes back. For custom comparison we can use the compared API introduced for the observe method.
from falcor.
We would use the same comparer function being added for #91
from falcor.
Related to issue #170
from falcor.
Related Issues (20)
- Less Data consumption, reducing of codes sizes HOT 1
- Go structs HOT 1
- Is Falcor being actively maintained? HOT 11
- Assign to read only property HOT 2
- Cannot read property $type of undefined at pathValueMerge HOT 2
- Need original response on call HOT 1
- Getting MaxRetryExceededError when using `$expires` HOT 1
- Limitations of Falcor HOT 3
- GET url limitation on IE HOT 2
- Returning empty object when getting branch nodes (useful for decoupling deref)
- Data corruption due to source-of-truth mismatch HOT 1
- Typo in doc HOT 2
- Crash in Falcor::ComputeStateObject::apiInit with slang shader on vulkan HOT 1
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI
- Falcor can integrate with mongoose? HOT 1
- Optionally retain request info for cancelled get requests
- readme example throws 500 HOT 2
- decorating model resulting in setCache being undefined HOT 1
- Model#call arguments validation
- Video tutorials are unavailable on the website HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falcor.