Skip to content
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

Duplicate index.js loading in Electron App #35

Open
noze12 opened this issue Mar 23, 2023 · 0 comments
Open

Duplicate index.js loading in Electron App #35

noze12 opened this issue Mar 23, 2023 · 0 comments

Comments

@noze12
Copy link

noze12 commented Mar 23, 2023

It seems that when using suretype in an Electron app, index.js is being loaded twice. As a result, event handlers are registered twice and states are also duplicated. Since the app only updates one of the states during operation, certain processes that rely on the state cannot function properly.

It is not clear where the problem is specifically occurring, but commenting out this line seems to prevent the issue, so the cause may be related to awesome-ajv-errors.

code that reproduces the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant