-
Notifications
You must be signed in to change notification settings - Fork 1
add useAsync custom hook #76
Comments
you mentioned that this happened during page navigation, right? I encountered this once, when I tried to do the following: If this is the case, other than using another hook to avoid this error, I would suggest removing the dependency instead. |
use effect + data fetching call, might have an error when applying data. |
I am not sure, by using another hook, would prevent any memory leak. |
feat(module): [conversations][FilterSideBar] Add filter for created_… Close #76
先前的service + setState的方式,有可能造成memory leak
更新的方式爲採用
useRef
先對相關的dipatch function / state / request method做ref,然後等unmount清對應的functionThe text was updated successfully, but these errors were encountered: