Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Lazy load thread list timeline set #8120

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Mar 22, 2022

Requires matrix-org/matrix-js-sdk#2254


This PR currently has no changelog labels, so will not be included in changelogs.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Preview: https://pr8120--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@germain-gg germain-gg requested a review from a team as a code owner March 22, 2022 18:34
@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

❗ No coverage uploaded for pull request base (develop@ebbda28). Click here to learn what that means.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             develop    #8120   +/-   ##
==========================================
  Coverage           ?   27.23%           
==========================================
  Files              ?      874           
  Lines              ?    52255           
  Branches           ?    13241           
==========================================
  Hits               ?    14230           
  Misses             ?    38025           
  Partials           ?        0           
Impacted Files Coverage Δ
src/components/structures/RightPanel.tsx 30.00% <ø> (ø)
src/components/structures/ThreadPanel.tsx 28.12% <0.00%> (ø)

Comment on lines 170 to 176
useEffect(() => {
setRoom(mxClient.getRoom(roomId));
const room = mxClient.getRoom(roomId);
room.createThreadsTimelineSets().then(() => {
setRoom(room);
setFilterOption(ThreadFilterType.All);
});
}, [mxClient, roomId]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be cleaner using useAsyncMemo

@germain-gg germain-gg merged commit f416a97 into develop Mar 22, 2022
@germain-gg germain-gg deleted the gsouquet/fix-create-timelinesets branch March 22, 2022 21:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants