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

Add tag argument to Screen.getScreenModel #101

Merged
merged 3 commits into from Mar 18, 2023
Merged

Add tag argument to Screen.getScreenModel #101

merged 3 commits into from Mar 18, 2023

Conversation

arslan-charyyev-pc
Copy link
Contributor

@arslan-charyyev-pc arslan-charyyev-pc commented Dec 10, 2022

Hello. My use case involves creating multiple instances of the same ScreenModel via hilt's assissted injection, as demonstrated here: https://voyager.adriel.cafe/screenmodel/hilt-integration#assistedinject. The issue is that the current Screen.getScreenModel function does not allow us to specify a tag to differentiate screen models. This PR is designed to address that.

Hello. My use case involves creating multiple instances of the same `ScreenModel` via hilt's assissted injection, as demonstrated here: https://voyager.adriel.cafe/screenmodel/hilt-integration#assistedinject. The issue is that the current `Screen.getScreenModel` function does not allow us to specify a tag to differential screen models. This PR is designed to address that.
@DevSrSouza
Copy link
Collaborator

@arslan-charyyev-pc a rebase will be required because of the changes in CRLF -> LF

@arslan-charyyev-pc
Copy link
Contributor Author

I've submitted the initial PR with a quick GitHub patch, and rebased via GitHub as well, so I'm not sure which line endings are used now. But GH says that this branch has no conflicts, so I assume that it was resolved.

@Syer10
Copy link
Contributor

Syer10 commented Mar 13, 2023

Lol it is not, you can tell by how the git changes look in github. Try this git add --renormalize voyager-hilt/src/main/java/cafe/adriel/voyager/hilt/ScreenModel.kt

@arslan-charyyev-pc
Copy link
Contributor Author

Thanks, @Syer10. Is it fixed this time?

@Syer10
Copy link
Contributor

Syer10 commented Mar 13, 2023

It is 👍

@DevSrSouza DevSrSouza merged commit a206ed3 into adrielcafe:main Mar 18, 2023
@arslan-charyyev-pc arslan-charyyev-pc deleted the patch-1 branch March 18, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants