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

[BUG]: merge function in @halvaradop/tailwindcss-merge returns a promise #100

Open
halvaradop opened this issue Dec 14, 2024 · 1 comment

Comments

@halvaradop
Copy link
Owner

In the current version of the merge function from the @halvaradop/tailwindcss-merge package, it returns a promise. This behavior forces users to use the merge function only in server-side components. This is problematic because many components in a project are rendered on the client side, making the merge function unusable in those components.

Additionally, the className and class attributes for React and HTML do not support asynchronous processing, which conflicts with the current behavior of the merge function.

const merge: (classes: string) => Promise<string>;
Copy link

Thank you, @halvaradop, for your contribution to halvaradop/tailwindcss-utilities.

Your submission will be reviewed by @halvaradop. We will provide feedback or approval as soon as possible.

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

1 participant