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

Conversation

@germain-gg
Copy link
Contributor

Fixes element-hq/element-web#17836

There is a cyclic dependency only when spaces are enabled between

  • SpaceStore
  • SpaceWatcher
  • RoomListStore

This regression was introduced by #6283 which only happened to change the loading order of components by chance in src/component-index.js.

A proper fix might be to have layer boundaries and ensure that things are only referenced in a certain direction to avoid this kind of issue. Or to maybe have a .start() method that would initialise things outside of the construction phase
In this case it takes a bit of a hybrid approach and delays the watchers setup to when the application notifies it is ready

@germain-gg germain-gg requested a review from a team June 29, 2021 16:10
@germain-gg germain-gg merged commit 55121f6 into develop Jun 29, 2021
@germain-gg germain-gg deleted the gsouquet/fix-17836 branch June 29, 2021 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants