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
Allow creating stateful dispatchers so that a change in the stateful dispatcher will propegate to all children of the stateful dispatcher.
e.g.
varrootDispatcher=newStatefulDispatcher(\*...*\);varchildDispatcher=rootDispatcher.createScoped("SomeScreen");rootDispatcher.setIdentity("User ID","123");rootDispatcher.setDispatchMethod(function(event){console.log(event)});childDispatcher.dispatch("View");// Will write to the console view event with User ID: 123
This will allow apps to create a root dispatcher and set its' behavior/dispatching method.
The text was updated successfully, but these errors were encountered:
Allow creating stateful dispatchers so that a change in the stateful dispatcher will propegate to all children of the stateful dispatcher.
e.g.
This will allow apps to create a root dispatcher and set its' behavior/dispatching method.
The text was updated successfully, but these errors were encountered: