Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Prevent infinite re-render loop by lazy-loading StoryClient in S…
…toryProvider This change fixes an issue where the StoryClient was being re-created on every render, causing an infinite re-render loop. By lazily initializing the StoryClient only once, the component will now only create the client when it's first needed, avoiding unnecessary renders. Additionally, a loading state is added to improve user experience while the client is being initialized. This ensures that the component doesn't break or display unexpected behavior during the initialization process.
- Loading branch information