Comments (2)
@talldan - glad you're enjoying Orbit :)
LocalStorageSource
initializes its internal cache without triggering didTransform
events. Think of it like a local database - you probably wouldn't want it to broadcast every piece of data as soon as the service starts.
If you do want to warm the cache of another source from a local storage source's cache, you could do the following:
memorySource.reset(localStorageSource.retrieve());
reset
and retrieve
operate directly on a source's caches. After initialization, you'll want to stick to using methods from Transformable
and Requestable
to transform and request data.
from orbit.
Thanks for the quick response, Dan. That's done the trick.
from orbit.
Related Issues (20)
- Memory Cache won't update relationships' meta if identities match existing record HOT 6
- Enable GitHub discussions to move support requests/general questions out of issue queue HOT 2
- [Docs] Add technical description of key request-processing, sync components
- `JSONAPIURLBuilder::buildPageParam()` (and likely others) have undefined properties serialized as `undefined` in query param
- Improve Validation Errors
- Integration with AbortSignal HOT 1
- serializers customization HOT 1
- custom filter operations
- [Feature] AsyncStorage data source
- Allow filtering for attribute/relationship not `null` (negated condition)
- Add "sideEffects": false to Orbit packages HOT 3
- Need optional chaining in `MemoryCache::removeInverseRelationshipsSync()` HOT 4
- jsonapi parallel request HOT 1
- parallel data querying principes HOT 3
- There is no upgrading steps in documentation HOT 2
- JSONAPISource Serialization Problem
- Store `__inverseRels__` not cleaned up with transform option `{ useBuffer: true }` HOT 1
- Optimistic Error Handling Got TypeError Not NetworkError HOT 4
- "supportsIndexedDB" is malfunctioning in some cases
- Kalakyo 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 orbit.