Closed geta6 closed 8 years ago
When FluxibleRouter does not match any routes, handleHistory component always throw nav.params is not an object error in client side.
handleHistory
nav.params is not an object
This error occurred by handleHistory:componentDidUpdate try to get params from null (from getDefaultProps), so I fixed it.
handleHistory:componentDidUpdate
params
getDefaultProps
Before
After
lgtm :+1:
CLA is valid!
:+1:
When FluxibleRouter does not match any routes,
handleHistory
component always thrownav.params is not an object
error in client side.This error occurred by
handleHistory:componentDidUpdate
try to getparams
from null (fromgetDefaultProps
), so I fixed it.Before
After