Commit a268627
committed
fix: make nested navigator params required
previously nested navigator params always included `| undefined`.
this made it possible to cause a crash by allowing navigating to nested
navigator without reequired params.
this improves the types to make them required, and only make it optional
if all nested params are optional.
it's a bit stricter than runtime, as it can depend on initial route for
a stack,
but for now this is a safer option than making it always optional.1 parent 44e76bb commit a268627
3 files changed
Lines changed: 229 additions & 87 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| 729 | + | |
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
| |||
739 | 740 | | |
740 | 741 | | |
741 | 742 | | |
| 743 | + | |
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
| |||
750 | 752 | | |
751 | 753 | | |
752 | 754 | | |
| 755 | + | |
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
| |||
0 commit comments