bug: reset end

This commit is contained in:
Kieran 2023-02-01 11:15:21 +00:00
parent eba4c19008
commit c22f7a6a6e
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -81,6 +81,10 @@ export default function useSubscription(sub: Subscriptions | null, options?: Use
useEffect(() => {
if (sub) {
return debounce(DebounceMs, () => {
dispatch({
type: "END",
end: false
});
setSubDebounced(sub);
});
}