Hi LinOneTwo To load a tiddler, your syncadaptor can call the $tw.syncer.storeTiddler(tiddlerFields) method with a hashmap of fields for the tiddler. You can call it asynchronously whenever you’ve got a new tiddler to load.
Best wishes Jeremy. > I'm continuing on my solid-syncadaptor, I'm considering only load > skinnytiddlers on the first `getSkinnyTiddlers()` trigger. > > And in the second trigger of `getSkinnyTiddlers()`, I load all the content of > tiddlers at once, and put response into Cache API > <https://developer.mozilla.org/en-US/docs/Web/API/Cache>. > > And in subsequent `getSkinnyTiddlers()`, I would use `stale-while-revalidate` > strategy: > first returns the data from cache (stale), then sends the fetch request > (revalidate), and finally comes with the up-to-date data again. > > So I need to push data to tw: > > 1. `getSkinnyTiddlers()` need me to return all data at once, but I want to > queue the request to the backend, and do it slowly > 2. `stale-while-revalidate`'s `finally comes with the up-to-date data` need > me push data to tw too. > > Is there an API to do so? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywikidev/363979a2-0f47-46a6-a4bf-fefbe9c01a0e%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywikidev/363979a2-0f47-46a6-a4bf-fefbe9c01a0e%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/CEE46237-920E-4F34-83E8-F7AF87D5DBC3%40gmail.com.
