jlvandenhout / docusaurus-plugin-docs-editor

56 stars 13 forks source link

Prevent loss of progress if authorization is required to finish a GitHub request #15

Open jlvandenhout opened 3 years ago

jlvandenhout commented 3 years ago

Currently if for some reason we need to authorize again with GitHub, any unsaved progress is lost as the authorization flow navigates away from the webpage. A possible solution is to use local storage to temporarily save progress while authorizing. This would also allow to save the action that failed, so it can be retried after authorization automatically.