Skip to content

v1.0.0

Choose a tag to compare

@kmoskwiak kmoskwiak released this 18 May 17:27
· 38 commits to master since this release

This version comes with breaking changes. Versions 0.x.x are not compatible.

  • key param is no longer needed,
  • name of global variable is now customizable,
  • seperation of data an internal contexts.

Migration from 0.x.x consists in removing key param from the useSSE hook calls:

// before
const [data] = useSSE(
  {},
  "my_key",
  () => {
    return fetch();
  },
  []
);
// after
const [data] = useSSE(
  {},
  () => {
    return fetch();
  },
  []
);