appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.89k stars 468 forks source link

How can I get all results from ReactiveList and saved in the state #349

Closed DickyKwok closed 6 years ago

DickyKwok commented 6 years ago

Issue Type:

enhancement

Platform:

ReactiveSearch for Native

Description:

How can I get all result and save in a variable?

            <ReactiveList
                componentId="results"
                dataField="original_title"
                size={1}
                showResultStats={true}
                pagination={true}
                react={{
                    and: "searchbox"
                }}
                onAllData={
                  function(res) {
                        console.log(res);
                  }
                }
            />
davidklebanoff commented 6 years ago

This sounds similar to the discussion at #334. But it looks like you're on the right track, through the onAllData property.

divyanshu013 commented 6 years ago

I wrote a detailed answer which might be useful for your case, please let me know if it helps: https://stackoverflow.com/a/50084895/4952669

metagrover commented 6 years ago

Closing due to inactivity. Feel free to reopen if you have any further questions on this.