fix!: rendered meaning#7747
Merged
BeksOmega merged 4 commits intoRaspberryPiFoundation:v11-breaksfrom Jan 10, 2024
Merged
Conversation
1 task
3998b14 to
e0f9525
Compare
e0f9525 to
902aeae
Compare
maribethb
reviewed
Jan 10, 2024
| @@ -123,7 +123,6 @@ export class Input { | |||
|
|
|||
| if (this.sourceBlock.rendered) { | |||
Contributor
There was a problem hiding this comment.
would it be possible to just check instanceof BlockSvg then you wouldn't need to cast either? circular dependencies are the only reason i can think of you wouldn't do that but i'm hoping that doesn't apply here
Contributor
Author
There was a problem hiding this comment.
It causes circular dependencies.
maribethb
approved these changes
Jan 10, 2024
mjgallag
added a commit
to mjgallag/appinventor-sources
that referenced
this pull request
Dec 12, 2025
mjgallag
added a commit
to mjgallag/appinventor-sources
that referenced
this pull request
Jan 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The basics
The details
Resolves
Fixes #4288
Proposed Changes
Makes it so that
renderedis constant, and is only used to check whether the block is aBlockor aBlockSvg.Reason for Changes
Makes the system easier to reason about and understand.
Test Coverage
Fixed change detectors.
Documentation
This will need docs. I have separate tasks filed for that.
Additional Information
This PR creates a pretty significant performance degredation related to
bumpNeighboursI have a separate fix in the works for that. But in an effort to keep my PRs small I'm putting that up separately.There's also more work to be removing references to
initSvgandrenderedand cleaning upinitSvg.Dependent on #7745
Breaking changes / To fix
If you are using
renderedto check whether the block is initialized or currently visible, do not do that.renderedshould only be used to tell if the block is aBlockinstance or aBlockSvginstance.If you are setting
renderedto temporarily disable rendering and improve performance, that is no longer necessary because we perform rendering batching.If you have another use case for accessing
renderedthat is not covered here, please let us know on the forum.