Skip to content

unnecessary console output "Component rendered" when embedded sketch is played (CopyCodeButton) #1085

@nbogie

Description

@nbogie

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Mac OS

Web browser and version

chrome 143.0.7499.170 (Official Build) (arm64)

Actual Behavior

Each time one presses play on an embedded sketch (e.g. in v1.x reference: fill, or in beta: strands tutorial ) the following text is added twice to the console:

Component rendered, isCopied: false

This quickly fills up the console with noise as the user iterates on a sketch (e.g. when trying to debug something).

Expected Behavior

There should be no console output in the happy path when pressing play on an embedded sketch, unless the sketch code itself adds it.

Steps to reproduce

Would you like to work on the issue?

yes, please!

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions