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

Styled(ToastContainer): Support for defaultProps will be removed from function components #52

Open
fire015 opened this issue Jun 17, 2024 · 3 comments

Comments

@fire015
Copy link

fire015 commented Jun 17, 2024

Whenever the toast appears (or upon initial compilation) you get the error when passing in toastProps:

Warning: Styled(ToastContainer): Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

According to fkhadra/react-toastify#970 this was fixed in v10 so perhaps you need to update the dependency?

Using Next.js v14.2.3 and React 18.

Here is my code:

      <SuprSendInbox
        workspaceKey="xxx"
        subscriberId="xxx"
        distinctId="xxx"
        hideAvatar={true}
        toastProps={{
          position: "top-center",
        }}
      />
@sivaram000
Copy link
Collaborator

sivaram000 commented Jun 20, 2024

@fire015 Noted. Will update in the next release.

@fire015
Copy link
Author

fire015 commented Jul 25, 2024

Hey @sivaram000 when will this be released? The errors are super annoying! Thanks

@sivaram000
Copy link
Collaborator

Hi @fire015 Will be picking this up next. Most probably should be resolved by mid of August. Will let you know exact timeline after picking up.

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

No branches or pull requests

2 participants