I have a Task which gets some JSON and provides content for my initial MainScene RowList.
How can I store and retrieve the JSON response somewhere, so that I can process it again on another Screen without having to make the HTTP request again?
Is `cachefs` the way to go?
(I'm amazed how many things I thought would be really common use cases seem to be so impossible to find in the documentation.)
Both writing to tmp: and cachefs: will work. tmp will go away when your channel ends, while cachefs may potentially still be around on a relaunch if the device didn't need to reuse that memory.
Both writing to tmp: and cachefs: will work. tmp will go away when your channel ends, while cachefs may potentially still be around on a relaunch if the device didn't need to reuse that memory.
Thanks.
Yes, I'd ended up writing the JSON to cachefs:/...
But it took quite some time to dig around the Documentation site to find out how to do it. (with WriteAsciiFile(path, data) )