shinyworks / cookies

Use Browser Cookies with 'shiny'
https://shinyworks.github.io/cookies/
Other
32 stars 4 forks source link

Client-side writing #79

Open jonthegeek opened 7 months ago

jonthegeek commented 7 months ago

As a user, in order to save data locally before attempting to hit a server, I would like to write cookies entirely in the browser (JS side).

I'm not sure how I'll implement this, but it grew from a discussion of handling connectivity issues between clients and the server. It would be cool to be able to write data to a cookie in case the server is dead.

Also include functionality to reconcile cookie with server on load, if that makes sense. Use case specifically had things saving as RDS on server side. The idea would be to check whether the server has this data, and to run through whatever the "submission" process is if not. I'm not certain whether this belongs here or as a specific implementation.