supasate / connected-react-router

A Redux binding for React Router v4
MIT License
4.73k stars 592 forks source link

fix query type #518

Open varchugov opened 3 years ago

varchugov commented 3 years ago

I use the RouterState interface in my DefaultRootState, but I can get an error in js when I use non-existent parameters

query parameters may be missing; query is an empty object by default 1 2 And this is a fix for the discussion

varchugov commented 3 years ago

@supasate Could you take a look at the pull reguest?

supasate commented 3 years ago

Hi @varchugov, could you help provide reproducible steps (or minimal repo that can reproduce the issue)?

Using Partial still requires query to be existed (but its keys can be optional).