coderwhy / coderwhy/hy-event-store

onStates监听多个变量的时候,只返回变化的那个变量,可以加个开关,控制是否返回所有变量

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
411
Forks
45
Avg merge
1m
Merged PRs (30d)
6

Description

onStates监听多个变量的时候,只返回变化的那个变量,可以加个开关,控制是否返回所有变量

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.

Research direction

Start by locating the onStates implementation in the repository and read how it gathers values when multiple variables are observed. Define the optional switch's default behavior from the current implementation, then verify that both changed-only and all-variable results work for multi-variable listeners.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.