Page MenuHomePhabricator

[native] Introduce `StaffContext`
ClosedPublic

Authored by atul on Oct 28 2022, 12:46 PM.
Tags
None
Referenced Files
F3516010: D5499.diff
Sun, Dec 22, 11:40 AM
Unknown Object (File)
Sat, Dec 14, 11:20 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Mon, Nov 25, 3:48 AM
Unknown Object (File)
Nov 16 2024, 2:11 AM
Unknown Object (File)
Nov 16 2024, 2:07 AM
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
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.