Skip to content

Commit

Permalink
flex repeater is now good
Browse files Browse the repository at this point in the history
  • Loading branch information
benmusson committed Nov 19, 2024
1 parent 5772ac3 commit 6278c67
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 678 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class EmbeddedViewModelDelegate(component: Component) : ComponentModelDelegate(c
private fun shutdownViewOutputListeners(viewModel: ViewModel) {
viewOutputListeners[viewModel]?.apply {
component.mdc {
log.tracef("Removing output listeners for view %s", viewModel.id)
log.tracef("Removing output listeners for view %s", viewModel.id.mountPath)
forEach { it.value.unsubscribe() }
viewOutputListeners[viewModel] = null
}
Expand All @@ -85,9 +85,10 @@ class EmbeddedViewModelDelegate(component: Component) : ComponentModelDelegate(c
private fun joinView(event: ViewJoinMsg) {
if (event.resourcePath != props.viewPath || event.mountPath != props.mountPath) {
component.mdc { log.warnf("Client requested unexpected resource or mount path.") }
return
}

log.tracef("Client is requesting to join view %s", event.instanceId().id)
log.tracef("Client is requesting to join view %s", event.mountPath)

viewLoader
.findOrStartView(event.resourcePath, event.mountPath, event.birthDate, props.viewParams)
Expand Down
Loading

0 comments on commit 6278c67

Please sign in to comment.