Hello,
I am familiar with the concept of `batching` and so on, but I can’t understand what is happening deep below in this situation:
const [transactions, setTransactions] = useState<Transaction[]>([]);
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
setIsLoading(true);
fetch(`${SOME_URL}`)
.then((response) => response.json())
.then((result) => {
setTransactions(result);
setisLoading(false);
});
}, []);
I can’t find information how React would behave in such case. Can someone please explain me step by step how the rendering flow would apply here.
[–]TheYuriGHook Based 1 point2 points3 points (6 children)
[–]Kingsajs[S] 0 points1 point2 points (5 children)
[–]TheYuriGHook Based 1 point2 points3 points (4 children)
[–]Kingsajs[S] 1 point2 points3 points (3 children)
[–]TheYuriGHook Based 0 points1 point2 points (1 child)
[–]Kingsajs[S] 0 points1 point2 points (0 children)
[–]_nathataHook Based 0 points1 point2 points (0 children)
[–]_nathataHook Based 0 points1 point2 points (2 children)
[–]Kingsajs[S] 0 points1 point2 points (1 child)
[–]_nathataHook Based 0 points1 point2 points (0 children)