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 parent
e42a83bbc4
commit
d4caa1585b
5 files changed
+67
-52
No files matched your search
@@ -0,0 +1 @@
|
||||
module.exports = { loadOlm: jest.fn(async () => {}) }
|
||||
Reference in new issue
Block a user