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

fix(react-board): allow mutable react board renderable #1304

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

0xRezaa
Copy link
Contributor

@0xRezaa 0xRezaa commented Jan 8, 2025

This PR allows the react board renderable to be mutable.
The render of the react board renderable is now referenceing this instead of adding an old reference into it's closure.

...input,
render(target) {
const renderable = this as IReactBoard;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the cast? why not type render to have this with a correct type?
https://www.typescriptlang.org/docs/handbook/2/functions.html#declaring-this-in-a-function

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

Successfully merging this pull request may close these issues.

2 participants