apollo-link-queue icon indicating copy to clipboard operation
apollo-link-queue copied to clipboard

Queue does not persist when application is closed

Open mircovippinn opened this issue 2 years ago • 5 comments

Hi, I've issue when closed the app and then run again, the data in queue don't persist. Any solutions?

mircovippinn avatar Apr 04 '22 19:04 mircovippinn

This feature is critical to me as well (as users can sometimes stay offline for a few days). Couldn't queued items be stored locally in a lightweight database? :)

alexisthual avatar Jul 27 '22 13:07 alexisthual

@alexisthual Did you find solution for this?

qsdnedzid avatar Oct 20 '22 08:10 qsdnedzid

No I didn't! :)

alexisthual avatar Oct 20 '22 14:10 alexisthual

Did you guys find a solution for this or went with another library? Like tanstack? @alexisthual @mircovippinn @qsdnedzid

seemX17 avatar Dec 04 '23 16:12 seemX17

I have the same issue, this is most likely to be handled by your app not by QueueLink itself. This is tricky due to how Apollo Operation is constructed with its Forward function and Observer being both closely tied to the specific network request.

This being said, it would be extremely helpful If enqueue function of QueueLink was typed as protected not as private. @helfer

kgrowinski avatar Jan 26 '24 12:01 kgrowinski