Dev-Mode Warnings
In development builds, WarGrid validates options and usage and emits actionable console warnings with codes and doc links. These checks are stripped from production builds, so misconfiguration is caught early at zero production cost.
Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with an in-page console panel. Two intentional misconfigurations are present.
Expected behavior
Each injected issue produces exactly one deduplicated warning that includes its code and a link. Production simulation produces no warnings. Error level throws during development.
Planned API surface
devModewarningLevelonDevWarningsuppressWarningsWarnCodeAcceptance criteria
- Every warning has a stable code, a message and a docs URL (pending)
- Warnings are deduplicated per grid instance (pending)
- Production bundles contain no warning strings (verified by a bundle test) (pending)
- onDevWarning receives structured payloads (pending)
- suppressWarnings accepts codes and is documented (pending)