The ConnectButton example in the documentation (Using the framewok module - Ceramic Developers) for a React app works on the first load, but subsequent page loads produce an error ‘ReferenceError: window is not defined’, presumably, because the code is executed server-side where “window” is undefined.
In other situations, the use of React’s “useEffect()” function can be leveraged to force code to execute in the browser, but I don’t know how to apply this to the button. Can others verify that the example code from the docs works as intended or did you have to make adjustments to avoid this problem?
Thanks for any help!
Jan