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)
Sun, Dec 15, 11:35 PM
Unknown Object (File)
Sun, Dec 15, 11:35 PM
Unknown Object (File)
Sun, Dec 15, 11:34 PM
Unknown Object (File)
Sun, Dec 15, 11:28 PM
Unknown Object (File)
Sat, Dec 14, 3:19 PM
Unknown Object (File)
Thu, Dec 12, 8:17 PM
Unknown Object (File)
Mon, Dec 9, 7:59 AM
Unknown Object (File)
Mon, Dec 2, 5:53 AM
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