mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-15 07:50:26 +00:00
Ensure that Olm is only loaded once
React 18's strict mode intentionally mounts all components twice, which was causing Olm to get double-loaded. Also, it doesn't need to be loaded if the app is running as a widget.
This commit is contained in:
1
test/mocks/olmMock.ts
Normal file
1
test/mocks/olmMock.ts
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = { loadOlm: jest.fn(async () => {}) }
|
||||
Reference in New Issue
Block a user