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.
How to drop the developer messages from your bundles:
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.