Skip to content

Conversation

Copy link

Copilot AI commented Nov 18, 2025

The v7 upgrade introduces stricter immutability checks that flag variable reassignments in event handlers as violations.

Changes

  • FormField.js: Replace variable reassignments with local copies in addConstraint and addProperty functions

The pattern changed from:

function addConstraint() {
  if (!validation) {
    validation = createElement(...);  // ❌ reassignment after render
  }
  // use validation
}

To:

function addConstraint() {
  let ensuredValidation = validation;
  if (!ensuredValidation) {
    ensuredValidation = createElement(...);  // ✅ local variable
  }
  // use ensuredValidation
}

Same pattern applied to properties variable in addProperty function.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Author

Copilot AI commented Nov 18, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: node install.mjs (dns block)
  • https://storage.googleapis.com/chrome-for-testing-public/139.0.7258.68/linux64/chrome-linux64.zip
    • Triggering command: node install.mjs (http block)
  • www-api.ibm.com
    • Triggering command: node /home/REDACTED/work/bpmn-js-properties-panel/bpmn-js-properties-panel/node_modules/@ibm/telemetry-js/dist/REDACTED-process.js --log=/tmp/ibmtelemetry-20251118T124536161Z-976895.log --config=telemetry.yml (dns block)
    • Triggering command: node /home/REDACTED/work/bpmn-js-properties-panel/bpmn-js-properties-panel/node_modules/@ibm/telemetry-js/dist/REDACTED-process.js --log=/tmp/ibmtelemetry-20251118T124629597Z-330397.log --config=telemetry.yml (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update dependency eslint-plugin-react-hooks to v7 Fix eslint-plugin-react-hooks v7 immutability violations Nov 18, 2025
Copilot AI requested a review from barmac November 18, 2025 12:52
Copilot finished work on behalf of barmac November 18, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in progress Currently worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants