This is an interview question :
Crash in browser , power failure , Or manually close , How to cache incomplete forms that have been entered , After reloading the page, you can restore the entered data ?
Consider using react Realization , The focus of this issue is Code / The implementation level of logic , Don't consider the problems prompted by users for the time being
Q1:react did not keep-alive What are you doing ?
Q2:redux Caching at the browser level doesn't seem to work , I answered that the monitoring page is closed , Store data in localStorage in , Is there any other plan besides this ?
Q3: What are the application scenarios of this browser level cache ?
( From my shallow experience , There seems to be no such demand in the project )
according to @_usw A hint of , I looked at the implementation of si no :
Editing old questions : It is on the input form ( For example, release problems ) Made an anti shake , There's one in the upper right corner In storage ..., Regularly submit the edited content to the remote , In storage Turn into Saved draft , If the page or browser is closed , and Cannot resume What has been edited
Edit new questions : ditto , In addition, it also updates synchronously localStorage, It's also necessary to recover after the browser is closed localStorage The data of
I tried deleting localStorage And refresh / Close page / Close the browser , Then the page reloads , Neither of the above has a request for a draft ( It's really puzzling )
![[QT] solve the problem that QT MSVC 2017 cannot compile](/img/35/e458fd437a0bed4bace2d6d65c9ec8.png)


![[QT] test whether QT can connect to the database](/img/63/32530c15995ef23bde8cadc3adfd11.png)

![Data analysis methodology and previous experience summary [notes dry goods]](/img/00/e4c4cf37f1ca9134546f970d800226.png)



