Page MenuHomePhabricator

[native] Introduce `StaffContext`
ClosedPublic

Authored by atul on Oct 28 2022, 12:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 30, 4:54 AM
Unknown Object (File)
Fri, Oct 18, 11:49 AM
Unknown Object (File)
Oct 8 2024, 6:47 AM
Unknown Object (File)
Sep 30 2024, 5:53 PM
Unknown Object (File)
Sep 30 2024, 5:53 PM
Unknown Object (File)
Sep 30 2024, 5:53 PM
Unknown Object (File)
Sep 30 2024, 5:53 PM
Unknown Object (File)
Sep 30 2024, 5:53 PM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-2134/have-a-flag-that-indicates-whether-the-build-is-a-staff-release

This diff is essentially copy/paste of native/root-context.js (which is why I made it a separate diff)


Depends on D5498

Test Plan

NA

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D5499 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Oct 28 2022, 12:54 PM
atul planned changes to this revision.
ashoat added inline comments.
native/staff/staff-context.js
9 ↗(On Diff #17969)

Possibly to split this line into two to maintain 80-char columns? Not sure if Prettier is forcing it or not

reduce line width to be < 80

This revision is now accepted and ready to land.Oct 31 2022, 1:23 PM
native/staff/staff-context.js
9 ↗(On Diff #17969)

It's forced to a single line as written.

I can't remove the React.Context<StaffContextType> annotation because we're exporting StaffContext, but we can remove the annotation (?) on React.createContext to get line width to 76.

This revision was landed with ongoing or failed builds.Oct 31 2022, 1:28 PM
This revision was automatically updated to reflect the committed changes.