ghedamat / reagent-react-router

A simple experiment to use react-router with reagent and clojurescript
Eclipse Public License 1.0
24 stars 3 forks source link

figwheel reload is broken #1

Open ghedamat opened 9 years ago

ghedamat commented 9 years ago

reagent/force-update-all doens't work with the components mounted by ReactRouter

the code is updated though so anything that triggers a rerender (like a transition to another route) would do

Deraen commented 9 years ago

You should probably force update by remounting the root component: https://github.com/reagent-project/reagent-template/commit/b0a0d61ae571c892cb0399f0d1d8f5435ec9e6ba

ghedamat commented 9 years ago

hi @Deraen seems like the way to go!

Unfortunately work keeping me super busy and I won't have too much time to play with this project for the next couple of weeks.

If you like feel free to open a PR to edit Readme/example app/whatever else you think should be edited! If not, not problem, I'll look into it as soon as I can and try to implement your suggestion.

thanks again