Page MenuHomePhabricator

[web] Hide databaseModule behind a function
ClosedPublic

Authored by michal on Sep 8 2023, 4:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 8:31 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:24 AM
Unknown Object (File)
Apr 5 2024, 11:20 AM
Unknown Object (File)
Mar 29 2024, 1:54 PM
Unknown Object (File)
Feb 19 2024, 6:17 PM
Unknown Object (File)
Feb 19 2024, 5:13 PM
Subscribers

Details

Summary

Part of ENG-4844
When database will be used by all users (including anonymous ones), we need to make sure that it's never in an unitialized state. We hide it behind a getter function so we add the initialization code there in the later diffs.

Test Plan

yarn flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/database/database-module-provider.js
125 ↗(On Diff #30854)

async will be used in the later diffs

michal requested review of this revision.Sep 8 2023, 4:19 AM
This revision is now accepted and ready to land.Sep 10 2023, 11:35 PM