Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltipPayload overwrites initPayload #468

Open
MuhannadCy opened this issue Aug 13, 2023 · 2 comments
Open

tooltipPayload overwrites initPayload #468

MuhannadCy opened this issue Aug 13, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@MuhannadCy
Copy link

I've encountered an issue and couldn't find a way to resolve it

If you pass the parameter tooltipPayload, the initPayload parameter will not trigger

I've been trying to find a workaround for this issue but I've been unable to find one

Is there a way to use the onChatOpen function to emit a message to socket to trigger the initPyaload ?

@MuhannadCy
Copy link
Author

okay so I've been able to resolve this by editing the file https://cdn.jsdelivr.net/npm/[email protected]/lib/index.js and commenting out the line ",a({type:"INITIALIZE"})" in the function trySendTooltipPayload

what this line was doing is setting the a variable "initialized" to true and the function trySendInitPayload checks if that variable is true it will not run, by removing that line the variable will not be set to true and the initPayload will run

@stale
Copy link

stale bot commented Oct 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant