useParams, useResource giving different results in different context.
I tried to get the resourceName, actions, params by using one of this hook inside
react-router-v6 routerProvider component and in routeChangeHandler. But they are giving different results. In routerPorvider I got excepted result from this {resource, action, id} = useParams(); // {resouce: 'post', action: 'edit', id: 2}. But in routeChangeHanlder, I got {resource: 'post/edit/2', action: undefined, id: undefined}. why?