question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible to transition between multiple layouts?

See original GitHub issue

I’m working on an application right now and would like to use different layouts for when the user is going through Onboarding steps or has completed them and are in the main application.

I noticed the docs have you specify a single MainLayout that will be used throughout the application. Is it possible to use transactions between multiple?

    <Found Context="routeData">
        <LayoutView Layout="@typeof(MainLayout)">
            <TransitionableRoutePrimary RouteData="@routeData" ForgetStateOnTransition="false">
                <TransitionableRouteView DefaultLayout="@typeof(MyViewLayout)" />
            </TransitionableRoutePrimary>
            <TransitionableRouteSecondary RouteData="@routeData" ForgetStateOnTransition="false">
                <TransitionableRouteView DefaultLayout="@typeof(MyViewLayout)" />
            </TransitionableRouteSecondary>
        </LayoutView>
    </Found>

If not, how can we approach using a mix of ‘Transitionable’ and non-transitionable layouts? One though was to get the page type and see if it implements some ITransitionableLayoutComponent interface through reflection, but wanted to check if there was a way already built-in to handle this.

Your help is much appreciated!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JByfordRewcommented, May 6, 2021

I don’t think I saw this. Let me know if it becomes an issue.

1reaction
lucaswaltercommented, May 6, 2021

One thing to note (not sure if you got this at all on your end), but I did see quite a considerable performance hit when using this full page approach. I spun the example up again with the blazor wasm template and was getting about a 400ms on input to switch back and forth from /count to /fetchdata

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to have multiple independent transitions in ...
1 Answer. MotionLayout moves the layout between ConstraintSets (states). ConstraintSet contains the state of all child Views. Another options ...
Read more >
SwiftUI AnyLayout - smooth transitions between layout types
In iOS 16, SwiftUI got a new tool, AnyLayout , that makes it possible to transition between layouts ( Layout ) while maintaining...
Read more >
Animate layout changes using a transition
This lets you transition between the two UI configurations. To obtain a scene, you need a reference to the scene root and the...
Read more >
Motion Layout: Multiple ConstraintSets - MAD Skills - YouTube
On this episode of Motion Layout for the MAD Skills series, you will learn how to add multiple ConstraintSets to the same Motion...
Read more >
How do I make smooth transitions between layouts
Anyone know how to make a transition between levels/rooms like in the original NES ... so multi-layout connections could be possible.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found