Skip to content

Commit

Permalink
Updated docs referring app.config.chain.getById to now refer to `us…
Browse files Browse the repository at this point in the history
…eGetCommunityByIdQuery`
  • Loading branch information
mzparacha committed Aug 8, 2024
1 parent 58beba7 commit 435cfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common_knowledge/App-Initialization-Flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The goal of this document is to describe the current state of the app initializa
3. The `LayoutComponent` operates as follows:
1. If, _at render time_, `app.loadingError` is set, display an application error.
2. If, _at render time_, the `app.loginStatusLoaded()` method returns false, a loading spinner is shown, triggered by `shouldShowLoadingState`.
3. If, _at render time_, `app.config.chains.getById(scope)` does not return successfully, render a `PageNotFound` view.
3. If, _at render time_, `useGetCommunityByIdQuery(scope)` does not return successfully, render a `PageNotFound` view.
4. If, _at render time_, there is no `selectedScope`, and no custom domain, then whatever chain is currently being loaded is deinitialized by `deinitChainOrCommunity`, and the `ScopeToLoad` state variable set to `null`. A loading spinner is shown, triggered by `shouldShowLoadingState`.
5. If, _at render time_, the `selectedScope` differs from `app.activeChainId()`, the `isLoading` and `scopeToLoad` global state variables are updated (to `true` and `selectedScope`, respectively). `selectChain()` is fired, receiving new scope's chain as argument; on completion, the `isLoading` state variable is set to `false`.
6. If none of these conditions apply, the routed-to page is rendered.
Expand Down

0 comments on commit 435cfcd

Please sign in to comment.