Releases: dlmr/react-router-redial
Releases · dlmr/react-router-redial
v0.2.0
Breaking
- Will now always call the hooks on the initial client load. This means that it's important to add a form of bailout in the hooks.
@provideHooks({
defer: ({ setProps, getProps, force }) => {
const { data } = getProps();
if(!data) {
setProps({ data: 'My important data' })
}
}
})
Fixes
- Solved a bug when trying to fetch props using
getProps
when nothing had been set before. - Solved a bug where props where not merged when using
setProps
. - Solved a bug in how locals were handled.