NextJS does a full reload on every change instead of fast refresh

Hi, I’m building a few apps using rescript, nextjs and tailwind. I’ve found that whenever I update any components in Rescript, nextJS will do a full reload instead of fast refreshing like it would if I were writing plain javascript. This is pretty painful especially when I just want to add a tailwind class to the className attribute of any react-component.

I’m hoping someone else has either experienced this and has a workaround or at least understands why this this might be happening.

See this message ReScript / NextJS Template 2021 Update - #10 by jfrolich

1 Like