-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocking non viable json objects from main process before sending it to renderer process #32
Comments
Drat, could you provide me with a code snippet of setting up a reducer and filter to show off this issue? |
This is the store and the reducer on the renderer process side:
The reducer:
And setting up store on main process
|
I wasn't able to precisely reproduce your error, but I did have other errors happening right at startup, as in order to do anything I run a recursive I guess what I would have to do is merge the After #33, I think the I doubt I'll be able to get to this for a while due to university, sorry 😞. Feel free to fork the repo and try out solutions yourself if its a pressing matter, and hopefully what I said in the previous paragraphs helps with that. |
Hello, I have run into a similar error but in a different scenario. Error is with this if (shouldForwardUpdate) {
ipcRenderer.send(
`${globalName}-renderer-dispatch`,
JSON.stringify({ action, clientId })
);
} I have a redux store with keys for movies, series, seasons and episodes, each keyed by id. In const mapStateToProps = ({incoming: {queue: {movies, shows, seasons, episodes}}}) => ({
movies: Object.keys(movies).map(id => movies[id]),
shows: Object.keys(shows).map(id => shows[id])
.map(show => {
show.seasons = show.seasonIds
.map(id => seasons[id])
.map(season => {
season.episodes = season.episodeIds
.map(id => episodes[id])
return season
})
return show
})
})
there's no error like this: const mapStateToProps = ({incoming: {queue: {movies, shows, seasons, episodes}}}) => ({
movies: Object.keys(movies).map(id => movies[id]),
shows: Object.keys(shows).map(id => shows[id])
}) |
Hi again,
This looks a bit silly but after I thought I solved this issue it appeared again at the exact same moments. When I store a socket and a electron process in the store (these values can't and don't need to be send to the renderer process) I get the following exception:
You mentioned before that this can happen because of the let
browserStore = remote.getGlobal(globalName)
. I would like to hear your thoughts about this and if there is a possible solution for this. At the moment I have the temporarily solution of a second store for these things that don't use the redux enhancer.Thanks!
The text was updated successfully, but these errors were encountered: