Skip to content

Update js() function in Component.cfc to accept params paramater - #239

Merged
grantcopley merged 1 commit into
coldbox-modules:nextfrom
mrigsby:fix-js-livewire-change
Nov 24, 2025
Merged

Update js() function in Component.cfc to accept params paramater#239
grantcopley merged 1 commit into
coldbox-modules:nextfrom
mrigsby:fix-js-livewire-change

Conversation

@mrigsby

@mrigsby mrigsby commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

Livewire.js changed the handling of the xjs being sent in the payload for the wire to an array of structs with params options. It was throwing a Cannot convert undefined or null to object javascript error in the browser for any javascript added with the js() function.

Changed the parameter names to match what livewire.js is using and the params defaults to an empty array providing backwards compatibility.

@grantcopley
grantcopley merged commit 24e1324 into coldbox-modules:next Nov 24, 2025
1 check passed
@grantcopley grantcopley added this to the v5.0 milestone Nov 24, 2025
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.

2 participants