You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the time, when listening to an Event, we want to repeat the last call made changing only what the new Event data is passing.
Example, we have a datepicker changing dates and multiple Events listening to the datepicker Event.
Now imagine one of these is a paginated call.
To make things work as expected, we currently need to remove the 'listenTo' for that paginated Event, register the Component that deals with the pagination to the datepicker Event and actively listen to it (on the componentDidUpdate hook), only to pass the correct data when teh date changes.
To solve this, we could have a way to reference the last call args to an Event on the default args declaration for the 'call' method.
The text was updated successfully, but these errors were encountered:
Most of the time, when listening to an Event, we want to repeat the last call made changing only what the new Event data is passing.
Example, we have a datepicker changing dates and multiple Events listening to the datepicker Event.
Now imagine one of these is a paginated call.
To make things work as expected, we currently need to remove the 'listenTo' for that paginated Event, register the Component that deals with the pagination to the datepicker Event and actively listen to it (on the componentDidUpdate hook), only to pass the correct data when teh date changes.
To solve this, we could have a way to reference the last call args to an Event on the default args declaration for the 'call' method.
The text was updated successfully, but these errors were encountered: