Skip to content

Commit 79566ee

Browse files
Update src/UniqueProvider/useTargetState.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent ea9e47b commit 79566ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniqueProvider/useTargetState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function useTargetState(): [
3434
pendingOptionsRef.current = nextOptions;
3535
} else {
3636
setOpen(true);
37-
// Use functional update to ensure re-render is always triggered
37+
// Set new options
3838
setOptions(nextOptions);
3939
pendingOptionsRef.current = null;
4040

0 commit comments

Comments
 (0)