From 31828fb1d1af6ae9bf6979aaeddd42359781d55a Mon Sep 17 00:00:00 2001 From: Cozy Pierre Date: Tue, 23 Aug 2022 14:52:21 +0200 Subject: [PATCH] fix(warning): mark as UNSAFE component will mount it removes warnings in Drive cause by Searchbar --- src/components/SearchBar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchBar.jsx b/src/components/SearchBar.jsx index 5a0b4051..8001b198 100644 --- a/src/components/SearchBar.jsx +++ b/src/components/SearchBar.jsx @@ -105,7 +105,7 @@ class SearchBar extends Component { sources = [] - componentWillMount() { + UNSAFE_componentWillMount() { this.debouncedOnSuggestionsFetchRequested = debounce( this.onSuggestionsFetchRequested, 250