rerender
seems to update props instead of replacing them
#252
Labels
rerender
seems to update props instead of replacing them
#252
In a component we provide two inputs,
avatar
andname
. Wheneveravatar
isundefined
and aname
is given, it should render the initials instead of an image. To test this behaviour we've usedrerender
:renderedAvatar
succeeds as expected, butrenderedInitials
fails sinceavatar
is still set – while I expected passing an object torerender
would completely replace all props.The test succeeds when I explicitly set
avatar
:The text was updated successfully, but these errors were encountered: