To accomplish this, the update_context system needs to be divided up.
Update_context should then only spawn the root node of a context and then send a "request context expansion" as an event. This way there can also be a pause when a new context is spawned, in the case of large folders where we might not want to spawn and simulate everything and instead give the user an option.
Request context expansion should handle both changing of contexts and the expansion of nodes within a context. There is not a meaningful difference between the two.
To accomplish this, the update_context system needs to be divided up.
Update_context should then only spawn the root node of a context and then send a "request context expansion" as an event. This way there can also be a pause when a new context is spawned, in the case of large folders where we might not want to spawn and simulate everything and instead give the user an option.
Request context expansion should handle both changing of contexts and the expansion of nodes within a context. There is not a meaningful difference between the two.