I wonder if we should fix the types or support push(path, state). I guess there isn't need to pass state object since query params can be used. Unless, the state is a big nested object. 🙄
I am happy to submit a PR. It should be simple though. Just want to hear your thoughts on which direction we should go about.
I've noticed that we can't pass state object when push().
State doesn't get passed in as an argument. https://github.com/atlassian-labs/react-resource-router/blob/master/src/controllers/router-store/index.tsx#L239
That probably means types are incorrect.
I wonder if we should fix the types or support
push(path, state)
. I guess there isn't need to pass state object since query params can be used. Unless, the state is a big nested object. 🙄I am happy to submit a PR. It should be simple though. Just want to hear your thoughts on which direction we should go about.