material-ui-superselectfield icon indicating copy to clipboard operation
material-ui-superselectfield copied to clipboard

use with asynchronous data

Open duanefields opened this issue 7 years ago • 5 comments

Anyone using this component with asynchronous data? That is searching a database for example in response to a change to the autocomplete filter and generating new children? I haven't had any luck.

duanefields avatar Mar 16 '17 20:03 duanefields

Consider using Redux and redux-thunk ?

Sharlaan avatar Mar 16 '17 21:03 Sharlaan

Well, here's the first issue,

https://github.com/Sharlaan/material-ui-superselectfield/pull/21

The autocomplete field wasn't showing up because of the spelling error

duanefields avatar Mar 16 '17 21:03 duanefields

Not at all, it were just a minor spelling fix, but thanks,

Regarding asynchronous loading, stay tuned with issue #22 this might help you.

Sharlaan avatar Mar 17 '17 11:03 Sharlaan

I see #22 , and that helps with dynamic data, but still would support dynamic, multi-select autocomplete. Primarily because of the way filter is implemented. Basically we need another method that is called when someone types into the "filter" field, to kick off the search.

duanefields avatar Mar 17 '17 14:03 duanefields

Sorry for late answer, please check latest versions with prop onAutoCompleteTyping

Please tell me if this solves your usecase.

Sharlaan avatar Nov 06 '17 20:11 Sharlaan