npm @vue/composition-api 0.3.0
v0.3.0

latest releases: 1.7.2, 1.7.1, 1.7.0...
5 years ago
  • Improve TypeScript type definitions.
  • Fix context.slots not being avaliable before render #84.

Changed

The render function returned from setup no longer receives any parameters.

Previous

export default {
  setup() {
    return props => h('div', prop.msg);
  },
};

Now

export default {
  setup(props) {
    return () => h('div', prop.msg);
  },
};

Don't miss a new composition-api release

NewReleases is sending notifications on new releases.