Comments (10)
I think exit
is fairly good for the context of a presenter. As when a presenter calling exit
, it means the current presentation is over and the presenter needs to be destroyed. While back
somehow means the presenter is still persist and doing its job.
from cicerone.
No. It will broke backward compatibility. Something difficult for new adept - it is normal 😃
from cicerone.
Backward what? Find/replace at the same time you change the library version.
from cicerone.
And it's not difficult - It's confusing. Nobody likes to be confused and it's not good for the library.
Let's do some poll in the chat?
from cicerone.
Poll - it's not good way.
Exit
command for screen presenter is more native method than back
because it local logic.
I want to leave it as is. For now.
from cicerone.
I think you only one who think in this way, this why I think poll is the good way.
And it is as it is now already. I think this issue should be reopened and marked as discussion for other people to express their opinion.
from cicerone.
Look,
exit
- it command will be destroy presenter. Presenter calls router.exit()
and ready for destroing.
back
- it command is very similar on exit
but may be confuse 'cause not return back on previous screen after replace
. Do you understand?
from cicerone.
Yep, but... we have backTo method too. But the presenter will not be persisted in any way in this case. So we have both cases with different "feelings" here. And this is what makes me a little unhappy with that.
Also, we have not paired methods names. I would prefer to see enter/exit, navigate/back... You get the idea.
from cicerone.
Looks like I'm the only one who wants this change ;)
So, I close this discussion. It had enough time.
from cicerone.
I like how calling
router.exit()
twice for some reason will back (BACK whole app but it is not about to close the one determined presenter) app twice.
That's interesting because it is not possible to exit fragment and open another one:
- If you call router.exit before something - it will close current fragment without fulfilling next line of code with opening something other.
- If you call router.exit after opening another fragment - good Lord, it will close opened fragment.
I don't think that's what all we want, this problem is my headache for current week...
from cicerone.
Related Issues (20)
- No view found for id HOT 1
- error with Creator ActivityScreen HOT 1
- How to use Cicerone in sigleActivity multimodule app? HOT 3
- `AppNavigator#setupFragmentTransaction` public signature compatibility HOT 5
- Question: How to get nextFragment when moving backward?
- Migration to mavenCentral HOT 2
- AppNavigator applyCommandsSync HOT 5
- Override Router implementation
- Where could I find more info when Cicerone falied to apply command? HOT 3
- Error when quickly changing fragments HOT 1
- I get NullPointerException when I try to set SupportAppNavigator in NavigatorHolder
- Crash in AppNavigator
- Crash in version 7.1 HOT 2
- ConcurrentModificationException
- v5 to v6+ migration guide HOT 2
- Crash in version 7.1 HOT 4
- Activity -> Fragment deeplinking
- Spelling and Grammar issues in Readme
- Remove Jetifier
- Few questions about your library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cicerone.