Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/optimize context & states #71

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

satnaing
Copy link
Owner

Although the changes don't significantly improve performance (because of how states are used in this case), this PR will make it easier for users to migrate to RSC in the future.

  • update context names
  • (TasksContextProvider => TasksProvider, useTasksContext => useTasks)
  • update context providers to React 19 style
  • (TasksContext.Provider => TasksContext, UsersContext.Provider => UsersContext)
  • handle states inside the context to be compatible with RSC in the future.

Copy link

netlify bot commented Dec 27, 2024

Deploy Preview for shadcn-admin ready!

Name Link
🔨 Latest commit da2ba09
🔍 Latest deploy log https://app.netlify.com/sites/shadcn-admin/deploys/676e89753fd33e0008045a75
😎 Deploy Preview https://deploy-preview-71--shadcn-admin.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@satnaing satnaing merged commit 7e965da into main Dec 27, 2024
5 checks passed
@satnaing satnaing deleted the refactor/optimize-context-&-states branch December 27, 2024 11:06
satnaing added a commit that referenced this pull request Dec 27, 2024
* refactor: optimize states in tasks context

* refactor: optimize states in users context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant