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
{{ message }}
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.
the fix for issue #15 was put into Hyper::Router::Mixin rather than Hyper::Router::Base. This means that every component creating a HyperRouter component (like using NavLink etc) was also adding a before_mount callback. But more critically the fix was using before_mount instead of after_mount so it was being invoked during prerrendering.
The actual code should look like this:
moduleHyperloopclassRoutermoduleBase...
base.class_evaldoafter_mountdo# thas was in Hyperloop::Router::Mixin BEFORE_MOUNT@_react_router_unlisten=history.listendo |location,_action|
React::State.set_state(HyperRouter,:location,location)endendbefore_unmountdo@_react_router_unlisten.callif@_react_router_unlistenendendendendendend
The text was updated successfully, but these errors were encountered:
the fix for issue #15 was put into
Hyper::Router::Mixin
rather thanHyper::Router::Base
. This means that every component creating a HyperRouter component (like using NavLink etc) was also adding a before_mount callback. But more critically the fix was usingbefore_mount
instead ofafter_mount
so it was being invoked during prerrendering.The actual code should look like this:
The text was updated successfully, but these errors were encountered: