graphql-platform
graphql-platform copied to clipboard
Banana Cake Pop schema cache isn't namespaced
Description
Banana Cake Pop caches data to IndexDB:
Unfortunately, those databases are shared per-domain, so if I configure two APIs:
...I can only effectively use Banana Cake Pop for the first one I visit.
Steps
Steps to reproduce the behavior:
- Configure two or more APIs on the same host/origin (one where the IndexDBs will collide)
- I followed this.
- Visit Banana Cake Pop for the first API, should work normally.
- Visit Banana Cake Pop for the second API
- Despite the URI being different, it will act like it has the schema from the first API you visited
Expected
Banana Cake Pop should be able to support multiple schemas hosted from a single host/origin.
My guess is that the solution would be to add some kind of prefix or namespace to how you store Banana Cake Pop data in the browser. :slightly_smiling_face:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.