Skip to content

Commit 2473c76

Browse files
committed
Update README.md
Rename `cacheAsyncResults` to `cache`
1 parent 89bb9c0 commit 2473c76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The function takes two arguments `String input, Function callback`and will be ca
107107

108108
When your async process finishes getting the options, pass them to `callback(err, data)` in a Object `{ options: [] }`.
109109

110-
The select control will intelligently cache options for input strings that have already been fetched. The cached result set will be filtered as more specific searches are input, so if your async process would only return a smaller set of results for a more specific query, also pass `complete: true` in the callback object. Caching can be disabled by setting `cacheAsyncResults` to `false` (Note that `complete: true` will then have no effect).
110+
The select control will intelligently cache options for input strings that have already been fetched. The cached result set will be filtered as more specific searches are input, so if your async process would only return a smaller set of results for a more specific query, also pass `complete: true` in the callback object. Caching can be disabled by setting `cache` to `false` (Note that `complete: true` will then have no effect).
111111

112112
Unless you specify the property `autoload={false}` the control will automatically load the default set of options (i.e. for `input: ''`) when it is mounted.
113113

@@ -216,7 +216,7 @@ For multi-select inputs, when providing a custom `filterOptions` method, remembe
216216
allowCreate | bool | false | allow new options to be created in multi mode (displays an "Add \<option> ?" item when a value not already in the `options` array is entered)
217217
autoload | bool | true | whether to auto-load the default async options set
218218
backspaceRemoves | bool | true | whether pressing backspace removes the last item when there is no input value
219-
cacheAsyncResults | bool | true | enables the options cache for `asyncOptions` (default: `true`)
219+
cache | bool | true | enables the options cache for `asyncOptions` (default: `true`)
220220
className | string | undefined | className for the outer element
221221
clearable | bool | true | should it be possible to reset value
222222
clearAllText | string | 'Clear all' | title for the "clear" control when `multi` is true

0 commit comments

Comments
 (0)