Closed iamrakhmatov closed 1 year ago
Hi @iamrakhmatov ,
thanks for reporting this! The issue should be fixed by https://github.com/lucaong/react-minisearch/pull/31 , which was just merged and released as v6.0.2
.
Hey, it appears that there is a regression in the latest v6.0.3 release and this issue is occurring again
Thanks @qin-guan , v6.0.4
(just released on NPM) should fix it, could you confirm?
Can confirm it works, thanks! 🙏🏻
const miniSearchOptions = { fields: ['title'] };
function Products() { const { search, searchResults } = useMiniSearch(data, miniSearchOptions);
const handleSearchChange = (event: React.ChangeEvent) => {
search(event.target.value);
};
It means I cannot use hook with React.StrickMode ?