onBeforeSettingNewTree

Invoke this before the result of currentLayoutState is about to change to a new non-null tree.