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
Currently, the VM is re-initialized every single time the user changes pages. This is not only resource consuming, but also leads to weird errors where the components suddenly say "VM is dead" briefly before coming back to life.
This happens because the initNear is called each time the router.query changes:
Currently, the VM is re-initialized every single time the user changes pages. This is not only resource consuming, but also leads to weird errors where the components suddenly say "VM is dead" briefly before coming back to life.
This happens because the
initNear
is called each time therouter.query
changes:near-discovery/src/components/vm/VmInitializer.tsx
Line 177 in 7f96c32
I do not understand the code, but I think that we are trying to inject some URL parameters into link elements?
Ideally, we would use
initNear
only once, since it is for initializing the VM, and figure out a different way to handle the URL paramsThe text was updated successfully, but these errors were encountered: