Page MenuHomePhabricator

[native] Introduce `StaffContext`
ClosedPublic

Authored by atul on Oct 28 2022, 12:46 PM.
Tags
None
Referenced Files
F1712979: D5499.diff
Tue, May 7, 6:01 AM
Unknown Object (File)
Mar 28 2024, 4:58 AM
Unknown Object (File)
Mar 28 2024, 4:58 AM
Unknown Object (File)
Mar 28 2024, 4:58 AM
Unknown Object (File)
Mar 28 2024, 4:58 AM
Unknown Object (File)
Mar 28 2024, 4:58 AM
Unknown Object (File)
Mar 28 2024, 4:57 AM
Unknown Object (File)
Mar 28 2024, 4:51 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.