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
How do I go about disabling prefetch of async components? Typically my async components show some kind of a spinner, along with other contextual elements when state is being fetched.
Ever since I integrated in this router, this no longer happens, and it looks like the state is being prefetched in AsyncRouteRenderingMixin.
Can this be disabled using a prop?
Currently I'm monkey patching this:
var AsyncRouteRenderingMixin = require('react-router-component/lib/AsyncRouteRenderingMixin');
function AsyncRouteRenderingMixin_setRoutingState(state,cb) {
this.replaceState(state, cb);
}
if (AsyncRouteRenderingMixin.setRoutingState != AsyncRouteRenderingMixin_setRoutingState) {
AsyncRouteRenderingMixin.setRoutingState = AsyncRouteRenderingMixin_setRoutingState;
}
The text was updated successfully, but these errors were encountered:
How do I go about disabling prefetch of async components? Typically my async components show some kind of a spinner, along with other contextual elements when state is being fetched.
Ever since I integrated in this router, this no longer happens, and it looks like the state is being prefetched in AsyncRouteRenderingMixin.
Can this be disabled using a prop?
Currently I'm monkey patching this:
var AsyncRouteRenderingMixin = require('react-router-component/lib/AsyncRouteRenderingMixin');
function AsyncRouteRenderingMixin_setRoutingState(state,cb) {
this.replaceState(state, cb);
}
if (AsyncRouteRenderingMixin.setRoutingState != AsyncRouteRenderingMixin_setRoutingState) {
AsyncRouteRenderingMixin.setRoutingState = AsyncRouteRenderingMixin_setRoutingState;
}
The text was updated successfully, but these errors were encountered: