acdlite / flummox

Minimal, isomorphic Flux.
http://acdlite.github.io/flummox
1.69k stars 114 forks source link

unable to make flummox work with react-router 1.0.0-beta3 #260

Open agile116 opened 9 years ago

agile116 commented 9 years ago

Any example to work with react-router 1.0.0-beta3? Thanks.

Adeher commented 9 years ago

+1

it seems I should use createElement on the Router to wrap the FluxComponent but I'm getting PropTypes warnings from my components, as if they are mounted before FluxComponent gives them props

edit: using the render method in FluxComponent seems to solve this

kjs3 commented 9 years ago

@Adeher can you give a code sample of how you're wrapping React Router 1 with FluxComponent? Or @agile116 did you ever get this working another way?

I'm trying to shift to 1.0rc3 and I'd rather not also make the shift to Reflux in one fell swoop. I'll get there later. :)