mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #922] [MERGED] Fix sendToIpcRenderer parameter handling #1356
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/922
Author: @softworkz
Created: 11/11/2025
Status: ✅ Merged
Merged: 11/12/2025
Merged by: @FlorianRappl
Base:
develop← Head:submit_fix_ipc_params📝 Commits (1)
12d2fcbFix sendToIpcRenderer parameter handling📊 Changes
3 files changed (+5 additions, -5 deletions)
View changed files
📝
src/ElectronNET.Host/api/ipc.js(+2 -2)📝
src/ElectronNET.Host/api/ipc.js.map(+1 -1)📝
src/ElectronNET.Host/api/ipc.ts(+2 -2)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.