Closed ericclemmons closed 9 years ago
To be honest, I can't figure out how this is an issue with the Resolver & can only confirm it's an issue with React Router v0.13.3:
It's not a problem with React Router v1.0.0-beta3:
I just opened rackt/react-router#1833 for help on this & will re-open this issue as needed...
but React Router v1.0.0-beta3 kinds of requires react 0.14 (or later), doesnt'it ?
@bbnnt I didn't think so:
https://github.com/rackt/react-router/blob/master/package.json#L52
I'd <3 to figure out a fix for this, but when the callback from Router.run
isn't firing, I'm all out of options.
Ok, somehow my comment wasn't saved. Anyway, fixing it now:
You can see how the usage of Resolver.render
(where it tries to load the data behind the scenes before rendering) causes issues with React Router.
Does the react-router guys just removed the callback without any specific reason and no retro-compatibility ? Feels weird, bcause with some specific versions of the concerned packages, things did work
I think it has something to do with context getting confused or whatever. Personally, I really just don't know.
Either way, the ability to "pre-load" before rendering will come back. I don't think anyone outside of myself was actually utilizing that.
First discovered in ericclemmons/react-resolver#77: