Open anandlall112 opened 2 years ago
Maybe you can use the model
property: storageFor(key, model)
model
Optional string - The dependent property. Must be an ember data model or an object withmodelName
andid
properties.
If every of the 200 apps has an identifier (modelName
and id
) you can reuse the same storage but it will save a version per app.
@anandlall112 did my comment help?
Hi fellas, i am building a dynamic app where i am integrating more than 200 apps that are plug and play. user can install them as needed. i really don't want to create a storage for each of them. so, Is there a way to use ember-local-storage dynamically without creating a storage class? as of current, to get pass this i am using
localforage
but would rather drop the dependency and use onlyember-local-storage
which i am already consuming as well.Example
@storageFor('dynamic-name-here')