feathersjs-ecosystem / feathers-localstorage

A client side service based on feathers-memory that persists to LocalStorage
MIT License
38 stars 15 forks source link

Performing .getEntries() before any of .get, .find, ... results in an error #111

Open mhillerstrom opened 4 years ago

mhillerstrom commented 4 years ago

Performing a app.service('tmp').getEntries() (inherited from feathers-memory) before using any command internally executing ready() will result in a TypeError (Cannot convert undefined or null to object). The problem resolves after first command executing ready().

The problem can easily be fixed by executing ready() as part of constructor (alternatively in a new _setup()). To circumvent the problem use await app.service('tmp').ready() as part of your application initialization.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Apologies if the issue could not be resolved. FeathersJS ecosystem modules are community maintained so there may be a chance that there isn't anybody available to address the issue at the moment. For other ways to get help see here.