mirror of
				https://github.com/JakeWharton/mosaic.git
				synced 2025-10-31 18:58:37 +08:00 
			
		
		
		
	Remove extra lambda allocation (#592)
This commit is contained in:
		| @ -270,9 +270,10 @@ internal class MosaicComposition( | |||||||
|  |  | ||||||
| 	fun setContent(content: @Composable () -> Unit) { | 	fun setContent(content: @Composable () -> Unit) { | ||||||
| 		composition.setContent { | 		composition.setContent { | ||||||
| 			CompositionLocalProvider(LocalTerminal provides terminalState.value) { | 			CompositionLocalProvider( | ||||||
| 				content() | 				LocalTerminal provides terminalState.value, | ||||||
| 			} | 				content, | ||||||
|  | 			) | ||||||
| 		} | 		} | ||||||
| 		performLayout() | 		performLayout() | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jake Wharton
					Jake Wharton