2 ms·
My high level understanding of how they work is that they remember the sequence in which they were called - so if you call the same hook three times, those thre
by simonw 4y ago
My high level understanding of how they work is that they remember the sequence in which they were called - so if you call the same hook three times, those three calls are held in a list - and future actions that should retrieve them get access to the correct data.
If you were to call them in an "if" branch it would mess up that queue mechanism.