Suppose I have two buttons one is "Order" which is linked to a document from Firebase.
When that button is clicked it goes to "OrderDetails" component, passing a parameter from the document in firebase. I then use the document parameter to populate the data. This works perfect.
However I also have another button create "New Order" this one doesn't have a parameter as the data will be brand new data. I want to link to the same page "OrderDetails" but I can't becuase it tells me I have to pass a parameter. Is there anyway to make it conditional? I would like to go to the same page OrderDetails but with out it passing a parameter or would I have to create the component again for an empty matching one?