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

String template change invalidates to big scope #65

Open
sellmair opened this issue Jan 24, 2025 · 0 comments
Open

String template change invalidates to big scope #65

sellmair opened this issue Jan 24, 2025 · 0 comments
Assignees
Labels

Comments

@sellmair
Copy link
Member

Example from 'AfterHotReloadEffectTest'

 fun main() {
                val decoy = 0
            
                underTestApplication {
                    var invocations by remember { mutableStateOf(0) }
                    var engaged by remember { mutableStateOf(true) }
                    
                    if(engaged) {
                        AfterHotReloadEffect {
                            invocations++
                            sendTestEvent(invocations)
                        }
                    }
                    
                    onTestEvent { value -> 
                        if(value == "start") engaged = true
                        if(value == "stop") engaged = false
                    }
                
                    Group {
                                         TestText("invoc.: %invocations") // <- change here will reset invocations
                    }
                }
            }
@sellmair sellmair self-assigned this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant