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
-
如题。做需求需要跟踪field.value的变化,发现field卸载后,相关函数依然在内存中驻留,并显示由于被disposers数组所引用而无法删除。在手动清空disposers后(
field.disposers = []
)便未有再发现驻留。鉴于disposers在field完成卸载后就不再有意义,是否应当在dispose()方法调用完成后清理该数组?
Beta Was this translation helpful? Give feedback.
All reactions