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
Use case: I don't want my components to update willy-nilly, so I use something like React.addons.PureRenderMixin to avoid unnecessary re-renders.
But neither Link nor RouteHandler does anything to trigger a render when their depending state (such as the current route) changes, so nothing actually updates.
The attached code showcases this. Clicking any of the links should change their state and show the appropriate page, but nothing is updated. Either removing the mixin in App or refreshing the browser puts the views in the appropriate state.
To run the example, have webpack or browserify make the javascript into a bundle.js and put it next to the html-file. The only dependencies are react 0.12.2, react-router 0.12.4 and the harmony-enabled JSX transformer.
The text was updated successfully, but these errors were encountered:
Use case: I don't want my components to update willy-nilly, so I use something like
React.addons.PureRenderMixin
to avoid unnecessary re-renders.But neither
Link
norRouteHandler
does anything to trigger a render when their depending state (such as the current route) changes, so nothing actually updates.The attached code showcases this. Clicking any of the links should change their state and show the appropriate page, but nothing is updated. Either removing the mixin in
App
or refreshing the browser puts the views in the appropriate state.javascript
html
To run the example, have webpack or browserify make the javascript into a
bundle.js
and put it next to the html-file. The only dependencies arereact 0.12.2
,react-router 0.12.4
and the harmony-enabled JSX transformer.The text was updated successfully, but these errors were encountered: