Hi, heres the link of the project. I've used the context and useLayoutEffect.
I've created a video clip of the issue. In the clip, I showed that there is a background transition when in Strict Mode but when I removed the Strict Mode, the background transition doesn't work.
Unfortunately, I can't simulate the build process in codesandbox. However, by removing the strict mode also shows the issue. https://drive.google.com/file/d/1VaGVvItGKm3DkziB_IzEYO1be87wbH6o/view?usp=sharing