You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The store is not a singleton, so you will need to either #15, or you have to pass the values back and forth as messages. Electron provides a handy invoke/handle API that works well for accessing these values.
I am in the process of upgrading to the latest version and a question:
Is it actually possible to import electron-store from the renderer <script type="module" src="./someModule.js">? Every time I try it complains about the node-imports.
My current workaround involves one new Store() in the main thread and then another new Store() in a window preload script that is then exposed globally in the renderer. I wanted to sanity check that is the correct and safe approach?
The text was updated successfully, but these errors were encountered:
I am in the process of upgrading to the latest version and a question:
<script type="module" src="./someModule.js">
? Every time I try it complains about the node-imports.My current workaround involves one
new Store()
in the main thread and then anothernew Store()
in a window preload script that is then exposed globally in the renderer. I wanted to sanity check that is the correct and safe approach?The text was updated successfully, but these errors were encountered: