Skip to content
This repository was archived by the owner on Feb 5, 2021. It is now read-only.

Bug fix: Make ViewRegistry.showRendering update if ViewRegistry changes. #33

Merged
merged 1 commit into from
May 28, 2020

Conversation

zach-klippenstein
Copy link
Collaborator

No description provided.

@zach-klippenstein zach-klippenstein force-pushed the zachklipp/fix-viewregistry-showrendering branch from 19b57ff to 5e620d7 Compare May 19, 2020 23:48
@zach-klippenstein zach-klippenstein changed the title WIP Make ViewRegistry.showRendering update if ViewRegistry changes. Make ViewRegistry.showRendering update if ViewRegistry changes. May 19, 2020
@zach-klippenstein zach-klippenstein marked this pull request as ready for review May 19, 2020 23:48
@zach-klippenstein zach-klippenstein requested a review from rjrjr May 19, 2020 23:48
@zach-klippenstein zach-klippenstein changed the title Make ViewRegistry.showRendering update if ViewRegistry changes. Bug fix: Make ViewRegistry.showRendering update if ViewRegistry changes. May 21, 2020
@@ -37,6 +37,6 @@ import com.squareup.workflow.ui.ViewRegistry
modifier: Modifier = Modifier
) {
val renderingType = rendering::class
val viewFactory = remember(renderingType) { getFactoryFor(renderingType) }
val viewFactory = remember(this, renderingType) { getFactoryFor(renderingType) }
Copy link
Contributor

Choose a reason for hiding this comment

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

whoa

@zach-klippenstein zach-klippenstein merged commit 2295483 into master May 28, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/fix-viewregistry-showrendering branch May 28, 2020 21:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants