Fix hydration warning on script nonces by aon · Pull Request #787 · epicweb-dev/epic-stack

@aon

This PR just fixes the annoying hydration warning that appears on Firefox on script nonces:

image

Test Plan

Checklist

  • Tests updated
  • Docs updated

Screenshots

@aon

@kentcdodds

@aon

I can't either, strange. But on dev mode the message is indeed there. Can you try it on a local environment?

@kentcdodds

Ah yes, I can reproduce it locally. I'll have to look into it a bit more later. I don't like using this attribute because it just hides the problem, but it may not fix the problem.

@aon

It does not indeed fix the problem. I've been reading your issues raised on the React repository and there doesn't seem to be a good solution so far. I implement this on my own projects because I couldn't think of any hydration issue that could arise on these scripts, and to prevent having errors in the console tab. Although I do agree with your statement above.

@kentcdodds