Page MenuHomePhabricator

[lib] Create a wrapper over dispatch
ClosedPublic

Authored by tomek on Mar 21 2024, 8:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:49 PM
Unknown Object (File)
Thu, Apr 25, 12:48 PM
Unknown Object (File)
Mon, Apr 8, 9:00 PM
Unknown Object (File)
Mon, Apr 8, 6:35 PM
Unknown Object (File)
Mon, Apr 8, 5:29 PM
Unknown Object (File)
Sun, Apr 7, 5:00 AM
Unknown Object (File)
Fri, Apr 5, 12:52 AM
Unknown Object (File)
Wed, Apr 3, 1:46 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.