Mina-Massoud / next-ui-full-calendar

next-ui-full-calendar, shadcn-ui-full-calendar
https://mina-scheduler.vercel.app/
MIT License
277 stars 18 forks source link

Initial state for the calendar values #6

Closed dimitrije-salic-nimbus-tech closed 1 month ago

dimitrije-salic-nimbus-tech commented 1 month ago

Can you make an option to pass initial state for the calendar values? I get the array of events from API and I want to pass it to the state on the initial render.

Mina-Massoud commented 1 month ago

Thank you for your suggestions! I’ve implemented the option to pass the initial state for the event values in version 1.0.3. You can now provide an array of events fetched from the API as the initial state on the initial render.

Please read the updated documentation for a better understanding of how to use it. I appreciate your input in making this library even better. If you have any further questions or need additional features, feel free to reach out!