Skip to content

indexdb caching sometimes returns wrong values #74

@belst

Description

@belst

Hi, I noticed that sometimes I get wrong values from the cache when I query stuff back to back.
This might be because I am using #72 already.

this.item = await this.api.gw2api.items().get(this.itemId);
console.log(`Itemid: ${this.itemId}`, this.item);
const tpval = await this.api.gw2api.commerce().prices().get(this.itemId);

Sometimes if this gets called a 2nd time the log output will be of the commerce api return not the item.

I haven't looked deeper into it yet, just wanted to let you know. I believe that it is a bug in the autoBatch function.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions