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)
Fri, Nov 22, 5:36 PM
Unknown Object (File)
Thu, Nov 14, 11:35 PM
Unknown Object (File)
Tue, Nov 12, 10:33 AM
Unknown Object (File)
Fri, Nov 8, 12:51 AM
Unknown Object (File)
Fri, Nov 8, 12:51 AM
Unknown Object (File)
Fri, Nov 8, 12:50 AM
Unknown Object (File)
Thu, Nov 7, 8:05 PM
Unknown Object (File)
Tue, Nov 5, 5:20 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/database/database-module-provider.js
125

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