Changeset View
Changeset View
Standalone View
Standalone View
native/community-creation/community-configuration.react.js
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | const callCreateNewCommunity = React.useCallback(async () => { | ||||
callNewThread, | callNewThread, | ||||
pendingCommunityName, | pendingCommunityName, | ||||
]); | ]); | ||||
const createNewCommunity = React.useCallback(async () => { | const createNewCommunity = React.useCallback(async () => { | ||||
setErrorMessage(); | setErrorMessage(); | ||||
const newThreadResultPromise = callCreateNewCommunity(); | const newThreadResultPromise = callCreateNewCommunity(); | ||||
dispatchActionPromise(newThreadActionTypes, newThreadResultPromise); | dispatchActionPromise(newThreadActionTypes, newThreadResultPromise); | ||||
await newThreadResultPromise; | const newThreadResult = await newThreadResultPromise; | ||||
navigate<'CommunityCreationMembers'>({ | navigate<'CommunityCreationMembers'>({ | ||||
name: CommunityCreationMembersRouteName, | name: CommunityCreationMembersRouteName, | ||||
params: { announcement: announcementSetting }, | params: { | ||||
announcement: announcementSetting, | |||||
threadID: newThreadResult.newThreadID, | |||||
}, | |||||
}); | }); | ||||
}, [ | }, [ | ||||
announcementSetting, | announcementSetting, | ||||
callCreateNewCommunity, | callCreateNewCommunity, | ||||
dispatchActionPromise, | dispatchActionPromise, | ||||
navigate, | navigate, | ||||
]); | ]); | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |