Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
React.useEffect(() => {
if (data?.query?.length > 0) {
dispatch(
getQueryStringResults(path, { ...data, fullobjects: 1 }, data.block),
);
}
}, [dispatch, data, data.block, path]);