Skip to content

Commit 55b070c

Browse files
committed
refactor: mark as pure functions
1 parent e321476 commit 55b070c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.changeset/rude-terms-remember.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@suid/system": patch
3+
"@suid/base": patch
4+
---
5+
6+
Mark as pure functions

packages/base/src/createComponentFactory.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import { batch, createComputed, JSXElement, splitProps } from "solid-js";
1717
import { createMutable } from "solid-js/store";
1818

19+
/*@__NO_SIDE_EFFECTS__*/
1920
function createComponentFactory<
2021
C extends SuidComponentType,
2122
O = InPropsOf<C>,

packages/system/src/createStyled.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ function getSuidComponentType(input: unknown): SuidComponentType | undefined {
110110
if (typeof input === "function") return (input as any)["__suid"];
111111
}
112112

113+
/*@__NO_SIDE_EFFECTS__*/
113114
function createStyled<
114115
T extends Theme<any>,
115116
CM extends Record<string, any> = {},

0 commit comments

Comments
 (0)