Closed Bug 1899205 Opened 1 year ago Closed 1 year ago

Implement UiStore in lib-state

Categories

(Firefox for Android :: General, enhancement, P1)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: jonalmeida, Assigned: jonalmeida)

References

Details

Attachments

(1 file, 3 obsolete files)

With the RFC in bug 1877307 landed, we should now implement it.

Severity: -- → N/A
Priority: -- → P1

We introduce a new UiStore that requires moving around some parts
of the original Store around, while keeping the surface area
identical to before so that we can swap between the different types.

Some noteworthy points and concepts introduced:

  • A StoreDispatcher holds the CoroutineContext in which a Store has
    implemented.
  • We move the assertOnThread out from the StoreThreadFactory so
    that we can now provide custom assertions based on the
    StoreDispatcher.
  • Some of the new files introduced are from moving multiple classes
    out from one file so that they can be better referenced in those new
    cases mentioned above.
Attachment #9406814 - Attachment is obsolete: true
Attachment #9406807 - Attachment is obsolete: true
Attachment #9406812 - Attachment is obsolete: true
See Also: → 1903469
Blocks: 1903470
Pushed by jonalmeida942@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d4b1db74dd63 Introduce UiStore to lib-state component r=android-reviewers,petru,matt-tighe,rsainani
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
See Also: → 1903863
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: