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