You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
背景
需求
一方面是,框架内
使用错误边界:https://ice.work/docs/guide/advanced/error-boundaries/,然后判断错误的类型可以进行处理,但是更新可能会出现很多种错误,不保险
一方面是,框架外
比如,我们自己拦截错误,然后判断,但感觉很麻烦,而且每个项目理论上都要怎么搞
比如,我们可以保留所有(需要所有,而不是当前和上一次版本,因为更新快的情况下会同时存在很多版本)的js文件,但是这样牺牲了空间(更麻烦的是再删除策略)。而且用户用的是旧版本...
比如,再上面的基础,我们加一个通知策略,就是有新版本通知用户更新。这个其实也很麻烦。
Beta Was this translation helpful? Give feedback.
All reactions