Skip to content

feat: remove change and changeInput in favor of rerender #378

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

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

timdeschryver
Copy link
Member

BREAKING CHANGE:

Use rerender instead of change.
Use rerender instead of changechangeInput.

For more info see #365

@timdeschryver
Copy link
Member Author

cc @shaman-apprentice

BREAKING CHANGE:

Use 
erender instead of change.
Use 
erender instead of changechangeInput

For more info see #365
expect(screen.getByText(`${firstName} ${lastName}`)).toBeInTheDocument();

const firstName2 = 'Chris';
await rerender({ componentInputs: { firstName: firstName2 } });
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems like this test fails while using componentInputs instead of componentProperties.
Do you think this is the expected behavior @shaman-apprentice ?
Changes is {} here.

Choose a reason for hiding this comment

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

I think the test should pass. On a first glance I don't know why it doesn't. Unfortunately, I am busy at the moment. When you want to create an issue for it, I promise to dig into it within the next 2-3 weeks. A quick look if you find a solution faster is of course very welcome.

Choose a reason for hiding this comment

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

I found a few minutes to deal with it. #380 will fix it. Good catch and thanks a lot for adding this test!

@timdeschryver timdeschryver merged commit ccfcecf into beta Apr 3, 2023
@timdeschryver timdeschryver deleted the remove-deprecations branch April 3, 2023 17:56
timdeschryver added a commit that referenced this pull request May 1, 2023
* feat: upgrade to @testing-library/dom 9 (#376)

BREAKING CHANGE:

For more info see https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0

* feat: remove change and changeInput in favor of rerender (#378)

BREAKING CHANGE:

Use `rerender` instead of `change`.
Use `rerender` instead of `changechangeInput`.

For more info see #365
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