Skip to content

Add ReactEvent.Toggle bindings - #164

Open
glennsl wants to merge 1 commit into
rescript-lang:masterfrom
glennsl:add-toggle-event-bindings
Open

glennsl wants to merge 1 commit into
rescript-lang:masterfrom
glennsl:add-toggle-event-bindings

Conversation

@glennsl

@glennsl glennsl commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Expose typed oldState, newState, and optional source accessors alongside the standard synthetic-event helpers.

Based on React DOM 19.3.1’s SyntheticEvent.js and the documented ToggleEvent.source behavior.

Depends on rescript-lang/rescript#9075

Signed-off-by: Glenn Slotte <glenn@slotte.net>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T12:50:17.404483Z 793aa1c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 793aa1c908

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/ReactEvent.res
}

module Toggle = {
type tag = JsxEvent.Toggle.tag

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Require the compiler release that defines Toggle

When this package is compiled with the currently supported ReScript 13.0.0-alpha.5, this member does not exist: JsxEvent.Toggle is introduced by compiler PR 9075, while package.json and package-lock.json remain on alpha.5 and the changelog still declares alpha.5 as the minimum. Because the npm package ships its .res and .resi sources, consumers on the allowed minimum cannot compile a release containing this binding; update the compiler requirement, lockfile, and documented minimum to the first release that includes that compiler change.

Useful? React with 👍 / 👎.

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