Skip to content

javascript: handlers reached through React context or redux connect props are registered - #1789

Merged
swapnilpaliwal-sd merged 1 commit into
0.1.9from
loop/ja-is1751
Sep 29, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
0.1.9from
loop/ja-is1751

Conversation

@swapnilpaliwal-sd

@swapnilpaliwal-sd swapnilpaliwal-sd commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
  • useContext(Ctx) / use(Ctx) / <Ctx.Consumer> evaluate to the value of every <Ctx.Provider> of the same createContext call (plus its default); matched by the call, not the name.
  • connect(mapState, mapDispatch)(C) is a component wrapper and hands C's props (function param or this.props) what the map functions return, or the object form.
  • useMemo / useCallback pass their value on.
  • New case 72-jsx-context-connect-props with controls: another context's same-named key, an unconnected component, a non-curried connect(), a separately connected subclass.

Checked: JS suite 87/87 with --oracle; fixture 36→45 edges; a real redux app 462→476 edges (known 96→143, ambiguous 224→176), no resolved edge lost, index time 4.49s→4.61s.

Closes #1751

…edux connect props are registered

useContext(Ctx) / use(Ctx) / <Ctx.Consumer> now evaluate to the value of every
<Ctx.Provider value> of the same createContext call (followed through consts and
imports, never by name), plus its default. connect(mapState, mapDispatch)(C) is a
component wrapper and hands C (props param or this.props) what the map functions
return, or the object form of mapDispatch. useMemo/useCallback pass their value on.
Controls: another context's same-named key, an unconnected component, a plain
non-curried connect(), and a separately connected subclass stay unchanged.

Closes #1751

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit f03d15e into 0.1.9 Sep 29, 2026
12 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the loop/ja-is1751 branch September 29, 2026 07:37
swapnilpaliwal-sd added a commit that referenced this pull request Sep 29, 2026
Conflict in decls_all.dl with #1789: keep both sets of jsx declarations.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant