ladda-js / ladda

JavaScript data fetching layer with caching
https://petercrona.gitbooks.io/ladda/content/
MIT License
112 stars 16 forks source link

idFrom = 'ARGS' is broken when there are no args given at all #35

Closed timurc closed 6 years ago

timurc commented 6 years ago

Hey fellow co-workers! First of of all, great work! Here's my issue:

I would have expected to be able to not pass args, but it seems like ladda is falling back into some other mode, I get:

Uncaught (in promise) Error: Value is missing id, tried to add to entity projects

Although as mentioned I got idFrom = 'ARGS' set.

In my concrete example I got search parameters (a query string). Without params the string is empty and then the error above happens.