react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Adds QuirkSetting to always use sqlite3 for AsyncStorage

Open rozele opened this issue 3 years ago • 1 comments
trafficstars

Description

Type of Change

Erase all that don't apply.

  • New feature (non-breaking change which adds functionality)

Why

Currently, apps with package identity default to using Windows.Storage files for AsyncStorage, but these apps may want the option to opt in to the sqlite3 implementation.

Resolves #10312

What

This commit adds a quirk setting to enable opt-in to sqlite3 storage.

Microsoft Reviewers: Open in CodeFlow

rozele avatar Jul 25 '22 21:07 rozele

Open to other options, I'll likely also be proposing another setting to customize the path where the AsyncStorage DB goes in a separate PR.

rozele avatar Jul 26 '22 00:07 rozele

/azp run

chiaramooney avatar Nov 02 '22 23:11 chiaramooney

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Nov 02 '22 23:11 azure-pipelines[bot]

/azp run

chiaramooney avatar Dec 08 '22 22:12 chiaramooney

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 08 '22 22:12 azure-pipelines[bot]

FYI AsyncStorage was removed in 0.71. So, we should probably be deleting the whole module. The JS code has already been removed.

acoates-ms avatar Dec 09 '22 17:12 acoates-ms

This PR had approval, but given that AsyncStorage is being removed in the current release of 0.71, is this PR still needed? @rozele thoughts?

chrisglein avatar Dec 14 '22 19:12 chrisglein

@chrisglein - up to you. We're going to have to start thinking about migration, but given our app has always been on the sqlite AsyncStorage, this won't be much of a problem. This change might still be useful if you wanted to cherry-pick it back to v0.70 and complement it with something that does StorageFile -> sqlite background migration to smooth out migration. Fine with me to close, as we won't be needing this commit post-migration.

rozele avatar Dec 20 '22 04:12 rozele

Discussed in PR Triage. Opting to not take this change.

chiaramooney avatar Apr 12 '23 23:04 chiaramooney