Skip to content

Commit 38f7a5c

Browse files
authored
Fix reset of playground render errors
Closes GH-2392. Reviewed-by: Titus Wormer <[email protected]>
1 parent efff74e commit 38f7a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_asset/editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function Playground() {
210210
})
211211

212212
return (
213-
<ErrorBoundary FallbackComponent={ErrorFallback}>
213+
<ErrorBoundary FallbackComponent={ErrorFallback} resetKeys={[value]}>
214214
<div className="playground-result">{mod.default({})}</div>
215215
</ErrorBoundary>
216216
)

0 commit comments

Comments
 (0)