* Also provide AppTree in NextPageContext * Don't predefine AppTree as null in ctx * Make update smaller * Don’t reassign variable * Add test for AppTree in NextPageContext * Update utils.ts