useSubscription
should unsubscribe from the previous criteria when switching criteria
/ subscriptionProps
#4197
Milestone
useSubscription
should unsubscribe from the previous criteria when switching criteria
/ subscriptionProps
#4197
Currently when
criteria
is changed foruseSubscription
, the previouscriteria
is not unsubscribed from because the timer on rerun of the effect is reset by the nextcriteria
being subscribed to...We should probably track each
criteria
separately with separate timers keyed off ofcriteria
andsubscriptionProps
The text was updated successfully, but these errors were encountered: