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
ca6d75e384d88779b6ac86369eb60153d3ee51b5
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: 34ms 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