Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/jsx.luau
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local action = require(script.Parent.action)()
local changed = require(script.Parent.changed)
local create = require(script.Parent.create)
local tags = require(script.Parent.tags)
local untrack = require(script.Parent.untrack)

type Props = { [any]: any }

Expand Down Expand Up @@ -67,7 +68,9 @@ local function jsx(tag: string | (Props) -> any, props: Props, ...): any
props.children = ...
end

return tag(props)
return untrack(function()
return tag(props)
end)
end

return jsx