reach/reach-ui

[checkbox] `useMixedCheckbox` logs unexpected dev warning in testing

Open

#763 opened on Mar 15, 2021

View on GitHub
 (9 comments) (0 reactions) (0 assignees)TypeScript (558 forks)auto 404
Help WantedType: Bug

Repository metrics

Stars
 (5,975 stars)
PR merge metrics
 (PR metrics pending)

Description

NOTE: As of 0.15.1 this should be a dev warning instead of an error, but I haven't had time to investigate the root cause.

-- Chance


🐛 Bug report

Current Behavior

This is my checkbox component. image

This is my test. image

This is what happens when I run the test. image

Expected behavior

I am not using the useMixedCheckbox at all in my component yet my test errors out here.

Your environment

Reach Package - Checkbox v0.13.2 React -v17.0.1 Browser - Chrome -Version 88.0.4324.192 (Official Build) (x86_64) Node - v14.9.0 Operating System - macOS Big Sur v11.2.3

Contributor guide