We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1017fa commit 2f8427cCopy full SHA for 2f8427c
src/datastar_py/sse.py
@@ -95,7 +95,7 @@ def patch_elements(
95
if isinstance(elements, _HtmlProvider):
96
elements = elements.__html__()
97
data_lines = []
98
- if mode and mode != "outer": # TODO: Should there be a constant for this?
+ if mode and mode != consts.ElementPatchMode.OUTER:
99
data_lines.append(f"{consts.MODE_DATALINE_LITERAL} {mode}")
100
if selector:
101
data_lines.append(f"{consts.SELECTOR_DATALINE_LITERAL} {selector}")
0 commit comments