joffrey-bion / livedoc

A not-so-annotation-based documentation generator for REST and websocket services
MIT License
4 stars 2 forks source link

Re-sync doc even if found in local storage #114

Closed joffrey-bion closed 6 years ago

joffrey-bion commented 6 years ago

Is your feature request related to a problem? Please describe. It's frustrating to have to unload the doc (using the "X" button in the top right-hand corner) and fetch it again in order to have an up-to-date doc. This is especially annoying when working on updates of the doc, but is also a problem when the server evolves and the clients don't realize they are out of sync forever.

Describe the solution you'd like At page load, use the local storage to have a quick cached doc appear, but trigger a fetch action in the background anyway.