You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index.js:1 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of `Autowhatever`.
in ConnectorWrapper (at AutoComplete.js:37)
in div (created by Autowhatever)
in Autowhatever (created by Autosuggest)
in Autosuggest (at AutoComplete.js:41)
in AutoComplete (created by AlgoliaAutoComplete(AutoComplete))
in AlgoliaAutoComplete(AutoComplete) (created by Context.Consumer)
in ConnectorWrapper (at GuestNavbar.js:59)
in div (at GuestNavbar.js:57)
in div (created by ForwardRef(Toolbar))
in ForwardRef(Toolbar) (created by WithStyles(ForwardRef(Toolbar)))
in WithStyles(ForwardRef(Toolbar)) (at GuestNavbar.js:49)
in header (created by ForwardRef(Paper))
in ForwardRef(Paper) (created by WithStyles(ForwardRef(Paper)))
in WithStyles(ForwardRef(Paper)) (created by ForwardRef(AppBar))
in ForwardRef(AppBar) (created by WithStyles(ForwardRef(AppBar)))
in WithStyles(ForwardRef(AppBar)) (at GuestNavbar.js:48)
in ElevationScroll (at GuestNavbar.js:47)
in HiddenJs (created by WithWidth(HiddenJs))
in WithWidth(HiddenJs) (created by Hidden)
in Hidden (at GuestNavbar.js:46)
in div (at GuestNavbar.js:44)
in GuestNavbar (at Navbar.js:10)
in div (at Navbar.js:9)
in Navbar (at App.js:119)
in InstantSearch (at App.js:117)
in div (at App.js:116)
in ThemeProvider (at App.js:114)
in LastLocationProvider (created by Context.Consumer)
in withRouter(LastLocationProvider) (at App.js:113)
in MuiPickersUtilsProvider (at App.js:112)
in Router (created by BrowserRouter)
in BrowserRouter (at App.js:111)
in App (at src/index.js:18)
in StrictMode (at src/index.js:17)
in Provider (at src/index.js:16)
I'm using Material UI and Algolia on my React app. I'm trying to implement my customised autocomplete with my customised Search box.
Here's my Search box component
And here's my Auto complete component:
The error I get on console is
when I use the one in the example code in the doc
it works fine.
What wrong am I doing? Can someone give me a solution how use renderInputComponent with a customised input component?
TIA
The text was updated successfully, but these errors were encountered: