hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

typeWriter effect is not working in production. #66

Closed hiyaryan closed 7 months ago

hiyaryan commented 7 months ago

While attempting to setup the production environment, the typeWriter effect is not working. While the react app build files are being deployed at the public IP, the Home page is not fully rendering due to the sequencing. If the TextField is not auto-populated with the typeWriter, then the remainder of the page will not load.

Note that this warning was printed in the console and may have something to do with the effect not working.

Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content.

hiyaryan commented 7 months ago

One possible issue is that the timeouts are not being cleared properly causing some form of race condition. Trace the timeouts to ensure that they are being cleared.

One way to debug this issue would be to insert the typeWriter script directly into the file where it's being used to check if there is actually a bug in the script.