Warning: React has detected a change in the order of Hooks called by
I have problem with Hooks order. What is funny, before I don’t have this problem. I was working on dark mode in my app and one time when I has reloaded my app console show me this problem. I didn’t touched this part of code where is this problem. Problem is in ‘loadEvents’ function: