Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Autocompletes use same cache #67

Open
jefhar opened this issue Sep 26, 2018 · 2 comments
Open

Multiple Autocompletes use same cache #67

jefhar opened this issue Sep 26, 2018 · 2 comments

Comments

@jefhar
Copy link

jefhar commented Sep 26, 2018

I have three Autocomplete fields on the same page which query different endpoints. It seems they all use the same cache.

Can I use a different cache for each field by overriding something or do I need to invalidate the cache somehow when a different field has focus?

@gurgeous
Copy link

gurgeous commented Oct 5, 2018

We encountered this issue as well, which I think is a bug. The Params object should use a fresh {} for each $Cache. In the meantime, you can work around this by passing $Cache:{} to AutoComplete().

@claudep
Copy link

claudep commented Apr 16, 2019

Thanks for the initialize tip, was bitten by the same bug too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants