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

AppyxComponent state not restored after configuration changes #694

Conversation

manuel-martos
Copy link
Contributor

@manuel-martos manuel-martos commented Apr 12, 2024

Description

Checklist

  • I've updated CHANGELOG.md if required.
  • I've updated the documentation if required.

@KovalevAndrey
Copy link
Collaborator

Update changelog pls

@manuel-martos manuel-martos changed the title AppyxComponent state not restored after configration changes AppyxComponent state not restored after configuration changes Apr 12, 2024
@manuel-martos manuel-martos self-assigned this Apr 12, 2024
@manuel-martos manuel-martos added bug Something isn't working appyx-navigation labels Apr 12, 2024
@manuel-martos manuel-martos added this to the 2.0 milestone Apr 12, 2024

class NodeTest {
@Test
fun WHEN_node_is_create_THEN_plugins_are_setup_as_expected() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a test that verifies that onSavedInstanceState is called on AppyxComponent when Node is saving its state?

import org.junit.Test

class NodeTest {
private var appyxComponent: DummyComponent<RootNode.NavTarget>? = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lateinit var can be used

@manuel-martos manuel-martos merged commit a9a46ed into bumble-tech:2.x Apr 12, 2024
7 checks passed
@manuel-martos manuel-martos deleted the 2.x-fix-component-state-not-restored branch April 12, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appyx-navigation bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants