6 ms·
> The Dispatcher is usually a massive switch statement that takes a single argument, which will be a record field that corresponds with the event type. Stores
by kaonashi 11y ago
> The Dispatcher is usually a massive switch statement that takes a single argument, which will be a record field that corresponds with the event type.
Stores have the switch, and you're supposed to break those up along model lines. In most the apps I've written, they never get beyond 4 or 5 branches.