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
Hi ,I use next js 14 app router ,When I set nodeIntegration to true in the createWindow method like below ,the useEffect method not trigger.if nodeIntegration set to false ,the useEffect is executed ,everything is ok , but I want to know why?
const mainWindow = createWindow('main', {
width: 1000,
height: 600,
webPreferences: {
contextIsolation: false,
nodeIntegration:true, // if this set to true ,useEffect not trigger
preload: path.join(__dirname, 'preload.js'),
},
})
the project file structure is below
the layout core code is :
the ProviderComponent code is below:
the app code is below:
I find the app component's useEffect not trigger. and the console only print the App component--- ,not print :useEffect [] init
The text was updated successfully, but these errors were encountered:
Hi ,I use next js 14 app router ,When I set nodeIntegration to true in the createWindow method like below ,the useEffect method not trigger.if nodeIntegration set to false ,the useEffect is executed ,everything is ok , but I want to know why?
the project file structure is below
the layout core code is :
the ProviderComponent code is below:
the app code is below:
I find the app component's useEffect not trigger. and the console only print the App component--- ,not print :useEffect [] init
The text was updated successfully, but these errors were encountered: