Skip to content

Commit

Permalink
Merge 1b5ea07 into 4dd99a7
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Apr 27, 2023
2 parents 4dd99a7 + 1b5ea07 commit d4f3c0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-jokes-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

perf: avoid unnecessary flat
2 changes: 1 addition & 1 deletion packages/solid/src/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export function splitProps<
T extends Record<any, any>,
K extends [readonly (keyof T)[], ...(readonly (keyof T)[])[]]
>(props: T, ...keys: K): SplitProps<T, K> {
const blocked = new Set<keyof T>(keys.flat());
const blocked = new Set<keyof T>(keys.length > 1 ? keys.flat() : keys[0]);
if ($PROXY in props) {
const res = keys.map(k => {
return new Proxy(
Expand Down

0 comments on commit d4f3c0f

Please sign in to comment.