Something is definitely wrong with <ThemeProvider>'s typings 👀

Open
#139 1 comment 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the linked CodeSandbox reproduction and inspect the ThemeProvider typings and usage shown there. Confirm which typing behavior is incorrect and define the expected ThemeProvider usage before changing anything; the issue is done when the reproduction no longer reports the typing problem.

Written by the indexing model from the issue text.

Description

Description

image

BTW i don't really understand what for this component is needed
Everything seems to work fine even without it

withTheme() HOC kinda provides theming 🤷🏼‍♂️

Reproducible Demo

I've reproduced this issue on CodeSandbox
Come check that out 👇

sandbox 🎁

Dominant language
JavaScript
Stars
466
Forks
53
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstack/react-theme-provider

All issues in callstack/react-theme-provider

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.