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
9b93d45ea0a5a5edc91c23a0a18688accb6ed5f9
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: 39ms 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