Hoisting state in composable objects