Skip to content

Conversation

@jembezmamy
Copy link
Contributor

This PR adds a @hasBlock argument to ReactBridge allowing to bypass the empty block error described in issue #30. When the argument is empty, (has-block) helper will be used - same as before. So the change is backward-compatible.

I added a failing test demonstrating the issue. It happens only when an empty blocked is passed and an argument is updated, causing an re-render.

@SkoebaSteve
Copy link
Collaborator

@jembezmamy thanks for adding this! To get this merged, we'll need to make sure your commits are verified:
image

let me know if the instructions of github are enough to solve it, otherwise we can do this together.

{{yield}}
{{/if}}
</Tag>
{{#let (this.or @hasBlock (has-block)) as |normalizedHasBlock|}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like a good patch to solve the problem we're facing with wrapping the bridge and yielding content. The original fix (using has-block) was already a patch. Long term, I think we'll need to fix the root cause in the modifier.

Could you add it as an issue in github so we'll keep track of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's log it in the existing issue #30

@SkoebaSteve SkoebaSteve added the bug Something isn't working label Jan 23, 2025
@jembezmamy
Copy link
Contributor Author

I fixed commit signing so now it's ready for merge

@jembezmamy
Copy link
Contributor Author

Hey @SkoebaSteve, can we merge this?

@jembezmamy
Copy link
Contributor Author

Hej @enna can you merge it for me? I don't have the permissions

@enna enna merged commit b41ff7d into qonto:main Feb 20, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants