You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to solve this issue without context is to pass down the Avatar component itself so that the intermediate components don't need to know about the user prop:
The text before this talks about user and avatarSize but the text only mentions user prop. Additionally, the Page component in the snippet below uses user and avatarSize props. The usage code shows only user prop being passed to Page component (sorry removed comments from the snippet as I am currently translating the comments and copied it from currently working localization repo).
GasimGasimzada
changed the title
"Advanced Topics > Context" regarding component composition source code and text do not match
"Advanced Topics > Context" regarding component composition source code and description do not match
Feb 19, 2019
One way to solve this issue without context is to pass down the Avatar component itself so that the intermediate components don't need to know about the user or avatarSize props
Uh oh!
There was an error while loading. Please reload this page.
I am going to copy the bits here:
The text before this talks about
user
andavatarSize
but the text only mentionsuser
prop. Additionally, the Page component in the snippet below usesuser
andavatarSize
props. The usage code shows onlyuser
prop being passed to Page component (sorry removed comments from the snippet as I am currently translating the comments and copied it from currently working localization repo).The text was updated successfully, but these errors were encountered: