react-custom-hooks Questions

3

Solved

In my React app, I have a custom defined hook that holds a useState value internally, but the custom hook itself does not return any values. If the value of its internal useState changes would this...
Disjuncture asked 11/6, 2022 at 16:15

1

So I use react-query to handle API requests. Current problem is that when i try to submit form data, post request, mutation state is always idle, and loading is always false. I also use zustand for...

2

i've written a custom hook to help me not repeat code for some fetch calls. it looks like this: export const useCustomQuery = ({ endpoint, body, dataPoint }: args) => { const [data, setData] = ...
Uitlander asked 12/1, 2022 at 11:47
1

© 2022 - 2024 — McMap. All rights reserved.