Skip to content

Conversation

pedrosousa13
Copy link

@pedrosousa13 pedrosousa13 commented Aug 19, 2025

This allows for client side icons to be used in app router.

Added the preserve directives plugin for vite. We use it since last year in our packages and it works great.

Added "use client"; to the context files otherwise they will fail when used in app router.

We understand using the ssr version is preferable though.

@pedrosousa13 pedrosousa13 changed the title fix: add use client directive to context fix(lib): add use client directive to context Aug 20, 2025
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

Successfully merging this pull request may close these issues.

1 participant