-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
Description
Hello Jason,
I have found a little (but unpleasant) bug in this adapter. It causes accumulation of data in storage and was causing rapid slowing down of my app in time.
Conditions:
- Set a
DSLocalStorageAdapterProvider.defaults.basePath
to someting - Call
create
- Call
destroy
- The
id
of removed item stays in the datastore inids
map.
It is located on this line: https://github.com/js-data/js-data-localstorage/blob/master/src/index.js#L377
Problem is in the second argument of this call this.removeId(id, resourceConfig.name, options))
The right form is this.removeId(id, resourceConfig, options))
Keep up good work, you saved me hours of frustrations :)