Skip to content

v0.2.0

Compare
Choose a tag to compare
@dlmr dlmr released this 12 May 21:41
· 88 commits to master since this release

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.