Skip to content

Duplicate index.js loading in Electron App #35

@noze12

Description

@noze12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions