Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.12 KB

developer-warnings.md

File metadata and controls

24 lines (15 loc) · 1.12 KB

Developer only warnings 👷‍

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