Open simon-tannai opened 1 year ago
For displaying loading, you can do something like this.
<MentionsInput
customSuggestionsContainer={(children) => (loading ? <Spinner /> : <Paper elevation={3}>{children}</Paper>)}
>
<Mention
isLoading={loading}
/>
</MentionsInput>
Hello 👋
I'm using async request to load data into suggestion list. This request take couple of seconds, so nothing happens while I have not the request response.
Is there a way to "pre-open" the suggestion container to display into it a loader before get the response request ?