 i wanted to get some more experience working with graphql mutations so i worked on a new feature for my site that enabled a user to like a blog article i ran into a little gotcha that is kind of obvious now that i know the solution but wasnt obvious at the time i didnt think i needed to be fancy and store the like in the database and associate with the user so i decided that tracking whether the user had liked the article in localstorage was enough and then keep track of the total article like count in the database seems easy enough right the problem this was my first approach in retrieving whether or not the user had liked the article from localstorage and this is the error that i was getting referenceerror window is not defined the fix at first i was but the fix is super simple and totally makes sense remix renders on the server but i wanted to run this in the browser so i simply needed to wrap it in a useeffect this is actually captured in the remix docs but it was kind of buried 