Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

samePageRef compares references to the objects of PageRef #1

Open
awesomeandrey opened this issue Nov 10, 2021 · 1 comment
Open

samePageRef compares references to the objects of PageRef #1

awesomeandrey opened this issue Nov 10, 2021 · 1 comment

Comments

@awesomeandrey
Copy link

Hello

The samePageRef method points to object references rather then making match by value.

Screenshot at Nov 10 18-58-17

Expected adjustment:

image

Steps to Reproduce

  1. Create Aura component (A) for the standalone page (should be url addressable, implement flexipage:availableForAllPageTypes )
  2. For component (A) write custom logic to open the modal window through overlayLib, dynamically instantiate another Aura component (B) and nest it into the modal body
  3. Fire custom event via pubSub from component (B), and try to handle it in component (A)
@MattSynaptic
Copy link

MattSynaptic commented Apr 18, 2022

I'm using this with LWCs (i.e. not Aura components) and both pageRefs don't always have attributes either. I created a workaround where I added the recordId as a payload prop and compared it recordId of the receiving component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants