From 38e38d45dd54d0c9be9c1b23a1e45ca342ea207b Mon Sep 17 00:00:00 2001 From: DavidGOrtega Date: Fri, 12 Apr 2024 01:25:04 +0200 Subject: [PATCH] trial context --- packages/008/src/components/Container.web.jsx | 6 ------ packages/008/src/store/Context.js | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/008/src/components/Container.web.jsx b/packages/008/src/components/Container.web.jsx index a7b6881..374ca34 100644 --- a/packages/008/src/components/Container.web.jsx +++ b/packages/008/src/components/Container.web.jsx @@ -3,12 +3,6 @@ import { View } from 'react-native'; import { COLORS } from './Basics'; import { useStore } from '../store/Context'; -import { init } from '../store/Electron'; -import { init as initEvents } from '../store/Events'; - -init(); -initEvents(); - export const Container = ({ children }) => { const { size: { width, height } diff --git a/packages/008/src/store/Context.js b/packages/008/src/store/Context.js index 741517d..f7f0356 100644 --- a/packages/008/src/store/Context.js +++ b/packages/008/src/store/Context.js @@ -10,6 +10,8 @@ import { encode } from 'base-64'; import _ from 'lodash'; import { getMicrophones, getSpeakers } from '../Sound'; +import { init as initElectron } from './Electron'; +import { init as initEvents } from './Events'; import Contacts from './Contacts'; const contacts = new Contacts(); @@ -68,6 +70,9 @@ const initializeStore = async state => { await requestPermissions(); initAudioDevices(); + initElectron(); + initEvents(); + initContacts(); };