You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Case: I'd like to be able to share a cache between multiple Async Select components that are loading options from the same data source. For instance, a table grid component where each Table Row is editable with an Async Select that fetches from the same source.
I believe a previous version of react-select let you set a shared cache using a cache prop, but that doesn't seem to be the case anymore. Perhaps the cacheOptions prop can just accept a cache object?
This discussion was converted from issue #4093 on February 05, 2021 08:10.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Feature Request
Use Case: I'd like to be able to share a cache between multiple Async Select components that are loading options from the same data source. For instance, a table grid component where each Table Row is editable with an Async Select that fetches from the same source.
I believe a previous version of react-select let you set a shared cache using a
cache
prop, but that doesn't seem to be the case anymore. Perhaps thecacheOptions
prop can just accept a cache object?As a workaround, I can override component's cache using a ref and this seems to work, but may be brittle as it relies on an implementation detail:
I am using react-select v3.0.8
Beta Was this translation helpful? Give feedback.
All reactions