MemeLabs / MemeLabs/Rustla2

consider using `recompose/withStateHandlers`

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

frontend good first contribution
Dominant language
C++
Stars
46
Forks
24
PR merge metrics
No merged PRs in 30d

Description

recompose@0.24.0 added a new enhancer: withStateHandlers(), which seems to be an alternative to the current combo of withState() and withHandlers() we run. This may be worth switching to, especially since it has better Flow support (should we ever start using that).

Components which currently use withState():

  • AdvancedStreamEmbed
  • Checkbox
  • LazyLoadOne
  • Stream

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating AdvancedStreamEmbed, Checkbox, LazyLoadOne, and Stream, then inspect their current withState() and withHandlers() usage. Compare those patterns with recompose's withStateHandlers() documentation; done means deciding whether the listed components should be migrated and applying the change consistently if so.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.