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

feat(widget): add access to "parent" in dispose #4745

Merged
merged 1 commit into from
May 3, 2021
Merged

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Apr 21, 2021

Summary

If the widget is conditionally adding widgets to the parent in init & render, it needs to be able to remove those on dispose.

Result

dispose is called with parent too. Updated all tests to use the existing helper createDisposeOptions

@Haroenv Haroenv requested review from a team, eunjae-lee and shortcuts and removed request for a team April 21, 2021 13:13
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 21, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5489f4e:

Sandbox Source
InstantSearch.js Configuration

@Haroenv Haroenv force-pushed the chore/types-reorg-8 branch from e02ab36 to 28c74b8 Compare April 28, 2021 13:38
@Haroenv Haroenv force-pushed the feat/dispose-parent branch 3 times, most recently from 1f51034 to 2eac256 Compare April 28, 2021 13:42
@Haroenv Haroenv force-pushed the chore/types-reorg-8 branch from 28c74b8 to 52bb7f1 Compare April 28, 2021 13:57
@Haroenv Haroenv force-pushed the feat/dispose-parent branch from 2eac256 to 6e158ba Compare April 28, 2021 13:57
@Haroenv Haroenv force-pushed the chore/types-reorg-8 branch from 52bb7f1 to 467df0e Compare April 28, 2021 14:21
@Haroenv Haroenv force-pushed the feat/dispose-parent branch 2 times, most recently from 4b31be4 to 2e91a77 Compare April 28, 2021 14:30
@Haroenv Haroenv force-pushed the chore/types-reorg-8 branch from 467df0e to 11c6b97 Compare May 3, 2021 12:51
Base automatically changed from chore/types-reorg-8 to master May 3, 2021 12:51

Verified

This commit was signed with the committer’s verified signature.
edolstra Eelco Dolstra
If the widget is conditionally adding widgets to the parent in init & render, it needs to be able to remove those on dispose.
@Haroenv Haroenv force-pushed the feat/dispose-parent branch from 2e91a77 to 5489f4e Compare May 3, 2021 12:53
@Haroenv Haroenv merged commit 3fca986 into master May 3, 2021
@Haroenv Haroenv deleted the feat/dispose-parent branch May 3, 2021 12:54
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.

None yet

3 participants