Zhuinden / flowless

[DEPRECATED] Based on Flow 1.0-alpha. To keep your life simple, use zhuinden/simple-stack instead.
Apache License 2.0
141 stars 7 forks source link

Flow.get() throws IllegalStateException before `onPostCreate()` #19

Closed Zhuinden closed 7 years ago

Zhuinden commented 7 years ago

Consider a way to obtain the instances in the context wrapper without relying on the retained fragment.

Zhuinden commented 7 years ago

This came up in:

Zhuinden commented 7 years ago

The first half should be fixed by https://github.com/Zhuinden/flowless/commit/40ee88d096cb47b6634e55387a53540e76e23f64

Zhuinden commented 7 years ago

The second half should be fixed by https://github.com/Zhuinden/flowless/commit/94faa27cec37535a20a599a60c14e3bf171fa682

Zhuinden commented 7 years ago

....Flow cannot exist before onActivityCreated() if Flow is installed into the Activity installed by the Fragment.

Welp.

Zhuinden commented 7 years ago

wontfix unless we go back to delegate, in which case services should be separated, in which case there is no point to this lib.