neilff / redux-ui-router

ngRedux bindings for Angular UI Router
MIT License
143 stars 48 forks source link

How to use $stateParams in resolve from state ui-router configuration ? #65

Closed michalpanek closed 7 years ago

michalpanek commented 7 years ago

I have state configuration like that:

params: {
          bindingsObj: -1
        },
        resolve: {
          bindingsObj: ($stateParams) => $stateParams.bindingsObj
        }

and what can I use that configuration, resolve $stateParams etc. when I use stateGo with redux-ui-router ?

When I use stateGo like above then I get error:

angular.js:13920TypeError: Cannot convert undefined or null to object at routerStateReducer (router-state-reducer.js:32) at combination (combineReducers.js:117) at dispatch (createStore.js:179)


what this info is not exist in redux-ui-router doc, or examples ?

hally9k commented 7 years ago

This issue is in the same vein... Resolves are not supported yet as far as I know.