1

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)
6
  • Given the stack trace it rather looks like a Salesforce framework bug. Not sure what else it could be...
    – Phil W
    Oct 23, 2019 at 7:34
  • Is there any work around to get record id passed from previous page? Oct 23, 2019 at 7:49
  • Not that I know of at this point. Perhaps someone else does?
    – Phil W
    Oct 23, 2019 at 7:52
  • I am struck on this from last week. I am to fix it asap. Oct 23, 2019 at 7:58
  • 1
    Sorry to hear it. Unfortunately I can't suggest anything. Perhaps you can try to raise a Salesforce support case? Alternatively, try posting your issue on the developer forums as well to see if you can get Salesforce's attention?
    – Phil W
    Oct 23, 2019 at 8:02

0

You must log in to answer this question.