Using watch() from renderer process
See original GitHub issueThanks for the nice module. According to the wiki, electron-settings can be used in the renderer process. Is this true for watch() as well?
I’m using the following code. The console doesn’t log anything when I set a new my-value from the main process. Am I doing anything wrong?
<script type="text/javascript">
const settings = require('electron-settings');
settings.watch('my-value', (newValue, oldValue) => {
console.log(newValue);
});
</script>
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (13 by maintainers)
Top Results From Across the Web
Working with files (I/O) in an Electron application - Medium
When a renderer process sends an event to the main process using ... The watchFiles() function watches for the unlink operation performed ...
Read more >How to pass parameters from main process to render ...
I have an Electron app that can open different windows. On app launch the app open a set of window(s) (that load the...
Read more >Watchers | Vue.js
Watchers declared using the watch option or the $watch() instance method are automatically stopped when the owner component is unmounted, so in most...
Read more >Chapter 6. Working with files - Electron in Action
This chapter covers. Determining if the content has been edited and is unsaved; Modifying the window's title based on the state of the...
Read more >Electron js Tutorial - 3 - Main and Renderer Process - YouTube
Courses - https://learn.codevolution.dev/ Support UPI - https://support.codevolution.dev/ Support PayPal ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

If you install
3.0.11this issue should be fixed ✨Moved here: #81