-
Notifications
You must be signed in to change notification settings - Fork 416
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悶] Objects and object properties can't be forwarded #588
Comments
Workaround using custom events to pass information or call objects from the main thread to Partytown or vice versa. |
@mdrmtz Can you give an example of a custom event usage for this? Using |
Describe the bug
Many third-party scripts are initialising global objects allowing to use its methods and properties (e.g.
AppcuesBundleSettings.accountId
).Unfortunately object or non-functional object property can't be forwarded it seems.
Example of object:
So
Foo.func
can be forwarded and used, whileFoo.id
isn't accessible.Tried to set it in all the following ways with no luck (either returns 'undefined' or function definition from partytown):
Reproduction
https://82qcgq-5000.csb.app/
Steps to reproduce
Browser Info
Any
Additional Information
Feel free to convert to an Improvement if there is no any workaround
The text was updated successfully, but these errors were encountered: