[PR #922] Fix sendToIpcRenderer parameter handling #1358

Open
opened 2026-01-29 16:59:55 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/922

State: closed
Merged: Yes


The spread operator must not be used for the data parameter because the params are provided by data as an array and not as function arguments (which the spread operator would collect).
The way it was caused the data parameter to be wrapped in an array once again (n-size data array wrapped inside a single-element array), so the later spread operator unpacks the outer array instead of spreading out the data array as multiple parameters.

**Original Pull Request:** https://github.com/ElectronNET/Electron.NET/pull/922 **State:** closed **Merged:** Yes --- The spread operator must not be used for the data parameter because the params are provided by data as an array and not as function arguments (which the spread operator would collect). The way it was caused the data parameter to be wrapped in an array once again (n-size data array wrapped inside a single-element array), so the later spread operator unpacks the outer array instead of spreading out the data array as multiple parameters.
claunia added the pull-request label 2026-01-29 16:59:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1358