How to use electron-store #357
alexis-piquet
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys !!!
Recently I was faced to a a question in the issues section related to the usage of cookies in production.
Here I would like to explain to you how to use the electron-store package.
Server-Side (IpcMain)
Constants
index.ts (background.ts)
window.ts
config.ts
And finally in the client you can implement a class service like the folowing:
You can also use a hook to catch an event payload:
Usage in a component
helper context
_app.tsx
I hope it will help you, do not hesitate to give me a feedback. Good luck and have fun everyone! <3 🚀
Beta Was this translation helpful? Give feedback.
All reactions