aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.41k stars 2.12k forks source link

Amplify DataStore in a chrome extension #7165

Open ejjick opened 3 years ago

ejjick commented 3 years ago

Which Category is your question related to?

API, DataStore

Amplify CLI Version

4.16.1

What AWS Services are you utilizing?

Amplify, AppSync, Cognito, DynamoDb

Provide additional details e.g. code snippets

I've been trying to use the DataStore component for online/offline sync in a chrome extension. However it looks like DataStore only comes with support for IndexedDB and chrome extensions don't have access to IndexedDB. You'd have to solve it with a content script and that solution seems like a bit of a hack. Are there any other options that you can see? Is it worth writing an adapter to use LocalStorage (perhaps with localForage) instead of IndexedDB?

renebrandel commented 3 years ago

Hey - i'm transferring this to the Amplify JS repository. cc @sammartinez

sammartinez commented 3 years ago

Thanks for this feature request @ejjick ! We will take this into consideration for the future of our use case for DataStore

ejjick commented 3 years ago

Thank you @sammartinez . I hope to be able to use it one day.