captureDispatchedAction

Captures a dispatched action and its resulting module state. State encoding happens on the worker, off the dispatch path.