Skip to content

Option to suppress JIT preview warnings in build log. #4017

Discussion options

You must be logged in to vote

Never mind, looks like the multiple warnings were being spammed because of react-hot-loader.

In my _app.jsx file setting the warnings prop to false on my CustomApp component achieves the result I was looking for where the warning is only shown once when I launch the dev server.

I can live with getting a full log of warnings when I run a local build for now.

For anyone else who needs it:

CustomApp.defaultProps = {
    warnings: false
};

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by franz-fletcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant