question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using watch() from renderer process

See original GitHub issue

Thanks 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:closed
  • Created 6 years ago
  • Comments:21 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
nathanbucharcommented, Apr 3, 2017

If you install 3.0.11 this issue should be fixed ✨

0reactions
nathanbucharcommented, Apr 5, 2017

Moved here: #81

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found