Skip to content

Commit 6346e53

Browse files
committed
Return data and state for newly created instances
Fixes #61
1 parent 1eb683f commit 6346e53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gooey/internal/core.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ function M.instance(id, instances, functions)
132132
for name,fn in pairs(functions or {}) do
133133
data[name] = function(...)
134134
fn(data, ...)
135+
return instances[key].data, instances[key].state
135136
end
136137
end
137138
end

0 commit comments

Comments
 (0)