If you create a new Router() instance and do not create a triggerEvent function on it (eg. router.triggerEvent = function(){}; ) then when you try to use the router via transitionTo or handleURL your route handler functions will not be called, the hidden optional logging function provided as a constructor argument doesnt log any errors, nor does the javascript engine itself. Only the returned Intent object shows a this.triggerEvent is not a function error without any additional information.
Doing a global text search through the entire codebase for "triggerEvent" only returns a function definition in router.d.ts which implies that the function should be implemented inside the router.es.js module but it isnt.
Also reading through the entire README yields no mention of triggerEvent or anything to point towards an issue here.
If you create a new Router() instance and do not create a
triggerEventfunction on it (eg.router.triggerEvent = function(){};) then when you try to use the router viatransitionToorhandleURLyour route handler functions will not be called, the hidden optional logging function provided as a constructor argument doesnt log any errors, nor does the javascript engine itself. Only the returned Intent object shows athis.triggerEvent is not a functionerror without any additional information.Doing a global text search through the entire codebase for "triggerEvent" only returns a function definition in
router.d.tswhich implies that the function should be implemented inside therouter.es.jsmodule but it isnt.Also reading through the entire README yields no mention of
triggerEventor anything to point towards an issue here.