I am trying to get lightning navigation service state parameters on next page but it is not working that way on Salesforce1 mobile app. Although it is working fine on chrome browser as web app.
@wire(CurrentPageReference) getPageRef(pageRef){ this.recordId = pageRef.state.c__rid; }
Getting following error.
Error: [LWC error]: Invalid event type "WireContextEvent" dispatched in
element <c-lineitemdetail-header-component>. Event name must 1) Start with a
lowercase letter 2) Contain only lowercase letters, numbers, and underscores
<c-lineitemdetail-header-component>
at Object.logError (aura_proddebug.js:4268)
at ConstructionEstimation.dispatchEvent (aura_proddebug.js:7622)
at ConstructionEstimation.wrappedMethod [as dispatchEvent] (aura_proddebug.js:12985)
at WireEventTarget.dispatchEvent (aura_proddebug.js:9501)
at d.get (contextService.js:2)
at eval (contextService.js:2)
at E (contextService.js:2)
at Object.t.getContextValue (contextService.js:2)
at c.getCurrentPageReference (pageService.js:2)
at eval (navigation.js:2)