Then just append it to the pages collection.
It means that currently visible route is sub-root and it has no children. So, you can:
- ignore push
- force append to pages collection (not recommended, it produces empty subtree)
Then it is exists somewhere in pages collection. Here can be two cases:
- New sub-root is same with root of latest sub-tree.
- New sub-root is same with root of sub-tree which exists somewhere in pages collection, but this sub-tree is not latest.
For this cases you can:
Latest sub-tree | Not latest sub-tree |
---|---|
ignore | ignore |
reset children | make it visible |
append (create new sub-tree) | make it visible and reset children |
- | append (create new sub-tree) |