Skip to content

"TypeError: settings.nodeReducer is not a function" when switching Codes Network on and off too fast #26

@tanius

Description

@tanius

A full-page error "TypeError: settings.nodeReducer is not a function" will appear, at least in Firefox, when (1) the Developer Tools are open and (2) clicking the switch for "Codes Network" repeatedly and faster than the software can react. Clicking four times in a row is enough to reliably reproduce the issue on a somewhat slower computer.

The fact that this does only happen when the browsers' Developer Tools section is open points to some weird race condition as the possible cause. Because with Developer Tools open, I think only one thread is used to execute the tasks of the website's tab.

Also, the full error message on the Developer Tools console includes a stacktrace that points to a possible cause inside Sigma.JS:

Uncaught TypeError: settings.nodeReducer is not a function
    process sigma.js:452
    _refresh sigma.js:513
    renderFrame sigma.js:535
    requestFrame index.js:69
    _scheduleRefresh sigma.js:534
    setSetting sigma.js:872
    useSetSettings hooks.ts:125
    […]

If it's indeed inside Sigma.JS and we're utilizing it the right way, then we would just want to report this upstream, given that the issue does not impede the normal workflow of Graphryder users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions