-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Clean up desktop UI console errors/warnings #2226
Conversation
Leave community | ||
</Typography> | ||
</Grid> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, when nesting certain things inside of material components that are not expecting it, weird errors can happen where it passes attributes to the DOM that it shouldn't. I figured this out by stumbling upon an issue that was describing something similar. I'm not sure where that issue went now, but can probably find it. Of course, it's easy to see how this causes errors by running the current version and the new changes.
ab646a6
to
c56f115
Compare
On desktop, the browser was emitting several errors/warnings that filled up the console. Some of these were related to React and then some of them related to HTML preload. The preload warning says, "A preload for {url} is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute." and then a little later it says, "The resource {url} was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally." Removing the crossorigin attribute on the font links removed the preload warning and it looks like everything is preloading correctly to me in dev/production (fonts load at the very beginning and no warnings). Maybe if CORS is not used then it also doesn't want crossorigin attribute.
c56f115
to
50858b0
Compare
On desktop, the browser was emitting several errors/warnings that filled up the console. Some of these were related to React and then some of them related to HTML preload. The preload warning says, "A preload for {url} is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute." and then a little later it says, "The resource {url} was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally." Removing the crossorigin attribute on the font links removed the preload warning and it looks like everything is preloading correctly to me in dev/production (fonts load at the very beginning and no warnings). Maybe if CORS is not used then it also doesn't want crossorigin attribute.
On desktop, the browser was emitting several errors/warnings that filled up the console. Some of these were related to React and then some of them related to HTML preload. The preload warning says, "A preload for {url} is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute." and then a little later it says, "The resource {url} was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally." Removing the crossorigin attribute on the font links removed the preload warning and it looks like everything is preloading correctly to me in dev/production (fonts load at the very beginning and no warnings). Maybe if CORS is not used then it also doesn't want crossorigin attribute.
On desktop, the browser was emitting several errors/warnings that filled up the console. Some of these were related to React and then some of them related to HTML preload. The preload warning says, "A preload for {url} is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute." and then a little later it says, "The resource {url} was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate
as
value and it is preloaded intentionally." Removing the crossorigin attribute on the font links removed the preload warning and it looks like everything is preloading correctly to me in dev/production (fonts load at the very beginning and no warnings). Maybe if CORS is not used then it also doesn't want crossorigin attribute.Pull Request Checklist
(Optional) Mobile checklist
Please ensure you completed the following checks if you did any changes to the mobile package: