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: nested fragments interact thru child fragment manager #6293

Merged
merged 8 commits into from
Oct 11, 2018

Conversation

manoldonev
Copy link
Contributor

@manoldonev manoldonev commented Sep 21, 2018

Fixes #6292

TODO: review tab fragments' logic with respect to this change (and how did it work so far in the first place).

@manoldonev manoldonev self-assigned this Sep 21, 2018
@ghost ghost added the in progress label Sep 21, 2018
@manoldonev manoldonev force-pushed the mdonev/child-fragment-manager-fix branch 4 times, most recently from 66045a1 to 45c7a80 Compare September 26, 2018 16:20
@manoldonev manoldonev changed the title [WIP] fix: nested fragments interact thru child fragment manager fix: nested fragments interact thru child fragment manager Sep 26, 2018
@@ -20,7 +20,7 @@ import {

import { Background, ad as androidBackground } from "../../styling/background";
import { profile } from "../../../profiling";
import { topmost } from "../../frame/frame-stack";
import { topmost } from "../../frame";
Copy link
Contributor

Choose a reason for hiding this comment

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

If I remember correctly, the reason for the separate frame-stack file and import was to avoid circular dependencies. Is this problem fixed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure but I'll revert that.

// - tabview -> frame1 (frame1 uses tabview item CHILD fm)
// - frame1 -> tabview (tabview uses frame1 CHILD fm)
// - frame1 -> tabview -> frame2 (tabview uses frame1 CHILD fm; frame2 uses tabview item CHILD fm)
if (view.typeName === "Frame" || view.typeName === "TabView") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the typeName will be wrong (and won't work) with uglify. The other property cssType that is set via the decorator might work, but it doesn't look right to use it.

What do you think about having a method _hasFragments() that returns true for TabView and Frame ?

@manoldonev manoldonev force-pushed the mdonev/child-fragment-manager-fix branch 3 times, most recently from be7c007 to 9831312 Compare October 1, 2018 08:51
@manoldonev manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 858ef79 to 0e498a7 Compare October 8, 2018 15:35
@manoldonev manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 407bcd9 to abc3f1c Compare October 9, 2018 07:01
@manoldonev manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 29b533b to bf0865a Compare October 10, 2018 12:59
@manoldonev manoldonev merged commit 3071720 into master Oct 11, 2018
@manoldonev manoldonev deleted the mdonev/child-fragment-manager-fix branch October 11, 2018 14:44
@ghost ghost removed the in progress label Oct 11, 2018
@lock
Copy link

lock bot commented Oct 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

interact with nested fragments only thru child fragment manager
4 participants