File tree Expand file tree Collapse file tree
src/py/reactpy/tests/test_core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1204,7 +1204,7 @@ def SomeComponent():
12041204@pytest .mark .parametrize ("get_value" , STRICT_EQUALITY_VALUE_CONSTRUCTORS )
12051205async def test_use_effect_compares_with_strict_equality (get_value ):
12061206 effect_count = reactpy .Ref (0 )
1207- value = reactpy .Ref ("string" )
1207+ value = reactpy .Ref (get_value () )
12081208 hook = HookCatcher ()
12091209
12101210 @reactpy .component
@@ -1216,7 +1216,7 @@ def incr_effect_count():
12161216
12171217 async with reactpy .Layout (SomeComponent ()) as layout :
12181218 await layout .render ()
1219- assert effect_count .current == 1
1219+ assert effect_count .current == get_value ()
12201220 value .current = "string" # new string instance but same value
12211221 hook .latest .schedule_render ()
12221222 await layout .render ()
You can’t perform that action at this time.
0 commit comments