Page MenuHomePhabricator

[lib] Create a wrapper over dispatch
ClosedPublic

Authored by tomek on Mar 21 2024, 8:26 AM.
Tags
None
Referenced Files
F3376785: D11369.diff
Wed, Nov 27, 2:10 AM
Unknown Object (File)
Sat, Nov 23, 12:35 PM
Unknown Object (File)
Sat, Nov 23, 11:37 AM
Unknown Object (File)
Tue, Nov 12, 10:39 PM
Unknown Object (File)
Tue, Nov 12, 10:39 PM
Unknown Object (File)
Tue, Nov 12, 10:39 PM
Unknown Object (File)
Tue, Nov 12, 10:39 PM
Unknown Object (File)
Tue, Nov 12, 10:38 PM
Subscribers

Details

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.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 21 2024, 8:37 AM
Harbormaster failed remote builds in B27650: Diff 38271!

Instead of creating a context we can have a simple hook

tomek retitled this revision from [lib] Create a context providing a wrapper over dispatch to [lib] Create a wrapper over dispatch.Mar 27 2024, 9:02 AM
tomek edited the summary of this revision. (Show Details)
tomek edited the test plan for this revision. (Show Details)
tomek requested review of this revision.Mar 27 2024, 9:18 AM
kamil added inline comments.
lib/hooks/ops-hooks.js
9 ↗(On Diff #38373)

this name feels a bit confusing to me - maybe something like useDispatchWithMessageID()? But don't feel strongly, up to you

This revision is now accepted and ready to land.Mar 28 2024, 3:54 AM
This revision was automatically updated to reflect the committed changes.