Skip to content

Hot reloading is not working with nextjs with "use client" #253

@adityaa72

Description

@adityaa72

Describe the bug
Hot reloading of classes is not working with nextjs with "use client";
It is working on server side without "use client";

Repo link

To Reproduce
Steps to reproduce the behavior:

  1. Start the project linked above
  2. go to button.ts
  3. change color secondary classname from bg-purple-500 to bg-red-500
  4. the classnames don't reflect in the button

Expected behavior
I expected the styles to get reflected on hot reloading without doing page refresh

Desktop (please complete the following information):

  • OS: Mac Os
  • Browser Firefox
  • Version 138

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions