Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

replace StorageApi global var with a make fn #394

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

SergNikitin
Copy link
Collaborator

This concludes the work to prepare for introduction of alternative StorageApi implementations for #351. Decision-making logic which determines which implementation should be used when will be near places where makeDatacenterStorageApi() gets called here.

⚠️after this change it won't be possible to access via smuggler global. All access will go through context.storage in React environments and through explicit parameter passing in non-React envs.

Copy link
Contributor

@akindyakov akindyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@SergNikitin SergNikitin merged commit 44bf629 into main Jan 4, 2023
@SergNikitin SergNikitin deleted the replace-global-storageapi-export branch January 4, 2023 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants