I'm trying to use https://github.com/adarshpastakia/ant-extensions/tree/master/modules/searchbar
I've added the code on the tutorial but get an error, is the library broken? Works on their storyboard
<SearchBar collapsed={false} filters={[]} fields={[]} emptyField={"Message when fields list is empty"} />
Error: A React component suspended while rendering, but no fallback UI was specified.
Add a component higher in the tree to provide a loading indicator or placeholder to display. in Unknown in div in Unknown (created by SearchBar) in div (created by SearchBar) in I18nextProvider (created by ContextProvider) in ContextProvider (created by SearchBar)
I've tried
<Suspense fallback={<div>Loading... </div>}>
<SearchBar collapsed={false} filters={[]} fields={[]} emptyField={"Message when fields list is empty"} />
</Suspense>
But it remains stuck on Loading... and doesnt render the component
I need something like the example on their storybook: https://ant-extensions.herokuapp.com/?path=/docs/search-bar-example--example
UPDATE: condesandbox here: https://codesandbox.io/s/magical-voice-h5gbk?file=/src/App.js
I get this error now: Element type is invalid. Received a promise that resolves to: undefined. Lazy element type must resolve to a class or function.