[lib] Create a wrapper over dispatch
Summary:
We're adding a messageID field to an action if it is provided
https://linear.app/comm/issue/ENG-7106/create-a-context
Depends on D11368
Test Plan: Use the new dispatch function and verify that the store gets updated. Check if the ops are being processed and that the queue's length decreases with each processing.
Reviewers: kamil, inka, will
Reviewed By: kamil
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11369