v1.0.0
This version comes with breaking changes. Versions 0.x.x are not compatible.
keyparam 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();
},
[]
);