Composing Custom Subscriptions
Writing a Subscription
The Basics
const myCoolSubscription = (dispatch, ...yourArgsHere) => {
// Do your stuff here
return () => {
// Clean your stuff up here
};
};const myCoolSubscription = (dispatch, a, b) => {
// Do your stuff here with a and b
return () => {
// Clean your stuff up here
};
};Smart Subscription Parameters
Last updated