We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Jason,
I have found a bug in this adapter. Under some extreme condtions it can probably cause two resources to read from one localstorage.
Conditions:
DSLocalStorageAdapterProvider.defaults.basePath = 'base'; DS.defineResource({endpoint: 'endpoint', name: 'name'}); DS.create('name', {}, {adapter: 'localstorage'});
Result:
Store contains:
{ "base/name": "{'123': 1}", "base/endpoint/123": "{}", }
Why is the localstorage key different?
The text was updated successfully, but these errors were encountered:
I think there's more code that you're not showing, where did the 123 come from?
Sorry, something went wrong.
123 is unique id which is assigned by adapter during create.
create
My code is of course much more complicated, but i was trying to reduce complexity for you.
I think the root of problem is custom endpoint. Without it the localstorage keys are good.
endpoint
No branches or pull requests
Hello Jason,
I have found a bug in this adapter. Under some extreme condtions it can probably cause two resources to read from one localstorage.
Conditions:
Result:
Store contains:
Why is the localstorage key different?
The text was updated successfully, but these errors were encountered: