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 d6f9bfe commit 5edfe26Copy full SHA for 5edfe26
src/py/reactpy/tests/test_core/test_hooks.py
@@ -1204,7 +1204,7 @@ def SomeComponent():
1204
@pytest.mark.parametrize("get_value", STRICT_EQUALITY_VALUE_CONSTRUCTORS)
1205
async def test_use_effect_compares_with_strict_equality(get_value):
1206
effect_count = reactpy.Ref(0)
1207
- value = reactpy.Ref("string")
+ value = reactpy.Ref(get_value())
1208
hook = HookCatcher()
1209
1210
@reactpy.component
@@ -1216,7 +1216,7 @@ def incr_effect_count():
1216
1217
async with reactpy.Layout(SomeComponent()) as layout:
1218
await layout.render()
1219
- assert effect_count.current == 1
+ assert effect_count.current == get_value()
1220
value.current = "string" # new string instance but same value
1221
hook.latest.schedule_render()
1222
0 commit comments