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

Toast component throws error on show #2696

Closed
fkirisci opened this issue Mar 23, 2022 · 1 comment · Fixed by #2697
Closed

Toast component throws error on show #2696

fkirisci opened this issue Mar 23, 2022 · 1 comment · Fixed by #2697
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@fkirisci
Copy link
Contributor

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-test-forked-z3nsj9

Current behavior
Toast component throws an error when calling show method with immutable object.

image

Expected behavior
Expected to see toast message

Minimal reproduction of the problem with instructions
I run into this problem passing redux (redux-toolkit) state as parameter to show method.
I used object.freeze method to generate immutable message object.
Click button then you can see error message.

Please tell us about your environment:

  • React version:
    17.0.2

  • PrimeReact version:
    7.2.1

  • Browser: [all]

  • Language: [all]
@melloware
Copy link
Member

Thanks for the report. PR submitted.

mertsincan added a commit that referenced this issue Mar 29, 2022
Co-authored-by: mertsincan <sincan.mert@gmail.com>
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Mar 29, 2022
@mertsincan mertsincan modified the milestones: 8.0.0, 8.0.0-rc.1 Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants