File tree 1 file changed +2
-2
lines changed
src/py/reactpy/tests/test_core
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1204,7 +1204,7 @@ def SomeComponent():
1204
1204
@pytest .mark .parametrize ("get_value" , STRICT_EQUALITY_VALUE_CONSTRUCTORS )
1205
1205
async def test_use_effect_compares_with_strict_equality (get_value ):
1206
1206
effect_count = reactpy .Ref (0 )
1207
- value = reactpy .Ref ("string" )
1207
+ value = reactpy .Ref (get_value () )
1208
1208
hook = HookCatcher ()
1209
1209
1210
1210
@reactpy .component
@@ -1217,7 +1217,7 @@ def incr_effect_count():
1217
1217
async with reactpy .Layout (SomeComponent ()) as layout :
1218
1218
await layout .render ()
1219
1219
assert effect_count .current == 1
1220
- value .current = "string" # new string instance but same value
1220
+ value .current = get_value ()
1221
1221
hook .latest .schedule_render ()
1222
1222
await layout .render ()
1223
1223
# effect does not trigger
You can’t perform that action at this time.
0 commit comments