Deepak
Deepak
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
but anyway, thanks for you help. Sometime discussing with other make you see the problem 😀
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
although i am new so i not very sure
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
yes it does work. But i show somewhere that navigate is desined to work with useEffect
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
just like this
const navigate = useNavigate();
const handleCick = (searchInput) => {
navigate(`/menu/${searchInput}`);
};
const navigate = useNavigate();
const handleCick = (searchInput) => {
navigate(`/menu/${searchInput}`);
};
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
is it necessary ?
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
what if i don't use navigate inside useEffect
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
one more question. sorry for too many
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
thanks , got it
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
oops, i realised the mistake
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
<button onClick={() => {
dispatch(searchQryHandler(searchInput));
handleCick();
}}
>
<FiSearch className="inline mx-1 text-2xl" />
</button>
<button onClick={() => {
dispatch(searchQryHandler(searchInput));
handleCick();
}}
>
<FiSearch className="inline mx-1 text-2xl" />
</button>
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
but it isn't able to read the searchinput when i click it lead me to url/menu/undefined
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
const navigate = useNavigate();
const handleCick = (searchInput) => {
navigate(`/menu/${searchInput}`);
};
const navigate = useNavigate();
const handleCick = (searchInput) => {
navigate(`/menu/${searchInput}`);
};
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
i am trying to achive something like this
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
Could you tell me one more thing
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
Thanks
27 replies
RReactiflux
Created by Deepak on 10/2/2022 in #help-threads-react
Deepak – 06-23 Oct 2
yes, its helpful
27 replies