Developer only warnings ๐Ÿ‘ทโ€

June 5, 2019 ยท View on GitHub

For common setup and usage issues and errors react-beautiful-dnd will log some information console for development builds (process.env.NODE_ENV !== 'production'). These logs are stripped from productions builds to save kbs and to keep the console clean.

dev only warnings

How to drop the developer messages from your bundles:

Disable warnings

If you want to disable the warnings in development, you just need to update a flag:

// disable all react-beautiful-dnd development warnings
window['__react-beautiful-dnd-disable-dev-warnings'] = true;

Disabling the warnings will not stop a drag from being aborted in the case of an error. It only disabling the logging about it.

โ† Back to documentation