Contexts
Note: In order to use a context, the module component getting access to the data must be a component directly rendered in the corresponding module. For example, the
GroupChannelListContext.Fragment
context cannot be used for a user list component because the component doesn't exist in theGroupChannelListFragment
.
Key function | Contexts |
---|---|
GroupChannelList | GroupChannelListContext.Fragment |
GroupChannel | GroupChannelContext.Fragment |
GroupChannelCreate | UserListContext.Fragment |
GroupChannelSettings | GroupChannelSettingsContext.Fragment |
GroupChannelInvite | UserListContext.Fragment |
GroupChannelMembers | UserListContext.Fragment |
You can use the context in a module component by calling the useContext
hook.