Commit 284bfbc3 authored by tom's avatar tom

reset component on unmount

parent 2264aa82
......@@ -26,6 +26,10 @@ const ContractCode = () => {
React.useEffect(() => {
import('./ContractSourceCode').then((component) => setContractSourceCode(component.default));
return () => {
setContractSourceCode(null);
};
}, []);
const addressHash = router.query.id?.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment