Skip to content

Commit 49cbee6

Browse files
committed
refactor: use a wrapper option for simplicity
1 parent 644f592 commit 49cbee6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pure.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,11 @@ function renderRoot(
158158
})
159159
},
160160
rerender: rerenderUi => {
161-
renderRoot(wrapUiIfNeeded(rerenderUi), {
161+
renderRoot(rerenderUi, {
162162
container,
163163
baseElement,
164164
root,
165+
wrapper: WrapperComponent,
165166
})
166167
// Intentionally do not return anything to avoid unnecessarily complicating the API.
167168
// folks can use all the same utilities we return in the first place that are bound to the container

0 commit comments

Comments
 (0)