Logo
Explore Help
Sign In
studio/element-call
2
0
Fork 0
You've already forked element-call
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
f5bc29a226a858b53aed51af2acc3e485ea9e61b
element-call/test/mocks/olmMock.ts

2 lines
54 B
TypeScript
Raw Normal View History

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.
2022-10-31 13:43:03 -04:00
module.exports = { loadOlm: jest.fn(async () => {}) }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 28ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API