Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How can this incredibly simple piece of code lead to "Maximum call stack size exceeded" ? - SolidJS
S
SolidJS
โข
3y ago
โข
12 replies
Evert
How can this incredibly simple piece of code lead to "Maximum call stack size exceeded" ?
The entire code for this demo is here
:
https://playground.solidjs.com/anonymous/7ec72a47-1bb4-4e9f-bf1d-3103d3d2c2d0
I just adapted it from one of the tutorial pages
. The culprit is one line
, as far as I can tell
:
createEffect(() => [0, 359].includes(num()) && setDir(dir() * -1));
createEffect(() => [0, 359].includes(num()) && setDir(dir() * -1));
I just don
't understand how that one line creates a stack overflow
. Can anybody enlighten me and maybe offer an alternative
? Any help would be much appreciates
.
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Maximum call stack size exceeded
S
SolidJS / support
2y ago
Maximum call stack size exceeded while using createEffect
S
SolidJS / support
3y ago
How to set size of child element?
S
SolidJS / support
3y ago
How to call `useNavigate` outside of router
S
SolidJS / support
2y ago