如何在使用 React 网页时在索引数据库中自动保存或制作 api 响应草稿
我想自动保存可能在索引数据库/本地存储上的大内容。内容是一个 API 响应,它是一个 React Web 应用程序。因此,当我们关闭浏览器或注销然后再次出现时,我可以获得一个恢复选项来通过更改恢复。 任何人都可以帮助我如何做到这一点?
I want to auto save the large contents may be on indexed Db/Local Storage. The content is an api response and it is a react web application.. So, when we close the brower or logged off and then comes again then i can get a restore option to get back by changes.
Anyone can can help how i can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Service Worker 并缓存 api 数据
You can use service worker and cache api data