Closed luandro closed 8 years ago
I've been using RR's Dynamic Routing technique that uses require.ensure. When doing that I get TypeError: Cannot read property 'fetchers' of undefined, since it's not what makeGetter is expecting:
require.ensure
TypeError: Cannot read property 'fetchers' of undefined
module.exports = { path: '/', getComponent(location, cb) { require.ensure([], (require) => { cb(null, require('./containers/HomeContainer')) }) } }
I haven't given this much thought, just throwing it out there but it does make sense to do a prefetch on "gradual matched" routes, right?
This should be fixed in v0.4.1. Please re-open if that's not the case.
I've been using RR's Dynamic Routing technique that uses
require.ensure
. When doing that I getTypeError: Cannot read property 'fetchers' of undefined
, since it's not what makeGetter is expecting:I haven't given this much thought, just throwing it out there but it does make sense to do a prefetch on "gradual matched" routes, right?