kripod / kripod/react-polymorphic-box

Edge case with ref forwarding doesn't throw an error when needed

Open
#17 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
346
Forks
14
PR merge metrics
No merged PRs in 30d

Description

## Description

Please see [my tweet](https://twitter.com/kripod97/status/1298016811364036608) for further details.

## Reproduction

Sandbox with all the information required: https://codesandbox.io/s/typescript-as-prop-with-react-polymorphic-box-vr269?file=/src/App.tsx

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction, especially src/App.tsx, and read the linked tweet for the missing context. Reproduce the ref-forwarding edge case and trace the polymorphic component behavior to identify the expected error condition. Done means the reproduction raises the required error without breaking the documented polymorphic usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.