Open untitledlt opened 5 years ago
I looked into this and added a reproduction to the preact-redux issue. It's not likely to be related to preact-router
, but rather that rendering a connected component with new props does not reevaluate its redux bindings.
I have migrated to preactx
and react-redux
. The issue is gone.
I tried a minimal install with latest
preact-cli
. Right after component is connected withpreact-redux
, navigating to route with query params stops triggering rerender.F.e. navigating to
/profile
or/
works fine but that's not the case with/profile/john
. It works if i refresh page or after something (redux?) triggers props change.handleRoute
function attached to<Router/>
works fine.With older versions (not sure
preact
orpreact-router
) everything works fine.