Giter VIP home page Giter VIP logo

Comments (13)

Zhuinden avatar Zhuinden commented on May 23, 2024

It's actually done, just heavily untested.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Make sure it is possible to persist state to a key inside nested backstack.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Make sure the key inside nested stack is managed by the nested stack.

Make sure that services are bound to active keys inside nested stacks as well.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Figure out that if nested key inside a nested stack receives its own local nested stack, then how to make it obvious to work with when you need to use the parent stack instead of the local one.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Service states and key-saved state view state should be managed by nested stack. Ensure that Bundleable handles this.

This means that the key state management in BackstackDelegate should be extracted and shared to NestedStack.

What did I get myself into....

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Should NestedStack have a ServiceManager of its own?

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

.... Is the logic inside BackstackDelegate actually just a BackstackManager, and the delegate should just delegate it over to this manager? That way nested stack can also have its manager.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

It is possible to leverage tearDown() for nested destruction. But initialize should set up the initial keys, using a managed state changer just like the delegate

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

I've been working on this for a week and apparently it's theoretically and pragmatically impossible using ContextWrappers.

Fuck my life. Out of scope for simple-stack.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Actually, it's working now?

I guess we'll have nested stacks after all, yay!

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

You must use the TearDown to destroy nested stack local management!

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

...except it breaks everything.

This is definitely out of scope, because it requires much better planning.

from simple-stack.

Zhuinden avatar Zhuinden commented on May 23, 2024

Thanks to the refactor stripping out BackstackManager, this is now shown in simple-stack-example-nestedstack using service-tree.

from simple-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.