withScope

inline fun StateProvider.withScope(source: TreeState, block: () -> Unit)