flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

class-list.json file write race condition

Open estallio opened this issue 8 months ago • 0 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] I have tested the latest version

Steps to reproduce

  1. Start the flowbite-react dev server
  2. Look at the generated class-list.json file

Current behavior

Currently there is a random ] somewhere in the list whenever I start the dev server. As as result the flowbite tailwind-classes are not being generated correctly. However it is not there if generated with flowbite-react build. After some investigation I think the dev server triggers the generation process too fast and start writing the class-list file even the previous writes are not finished.

Image

Expected behavior

The class-list file is being generated correctly and the dev server waits for the previous writes to be finished.

Maybe a lock or debouncing logic fixes this issue.

estallio avatar Jun 18 '25 07:06 estallio