Skip to content

feat(shared): Organization hooks with setData and revalidate (#1745)#2013

Merged
panteliselef merged 1 commit into
release/v4from
backport-release/v4-1745
Nov 2, 2023
Merged

feat(shared): Organization hooks with setData and revalidate (#1745)#2013
panteliselef merged 1 commit into
release/v4from
backport-release/v4-1745

Conversation

@clerk-cookie

Copy link
Copy Markdown
Collaborator

Backporting #1745 to the release/v4 branch

(cherry picked from commit 743c4d2)

* feat(shared): Expose stable mutate

* chore(clerk-js): OrganizationList and switcher with stable mutate

* chore(clerk-js): OrganizationProfile with stable mutate

* fix(shared): Replace mutate with setCache and revalidate

* fix(clerk-js): Replace mutate with setCache and revalidate

* chore(clerk-js,shared): Replace setCache with setData

* fix(shared): Remove unnecessary complexity in types

* chore(clerk-js): Update after rebase

* chore(shared): Add comments with context

* chore(shared): Update changeset

(cherry picked from commit 743c4d2)
@changeset-bot

changeset-bot Bot commented Nov 2, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9b8869f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@clerk/shared Minor
@clerk/backend Patch
@clerk/clerk-js Patch
@clerk/clerk-expo Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
gatsby-plugin-clerk Patch
@clerk/chrome-extension Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef
panteliselef requested a review from a team November 2, 2023 09:14
@panteliselef

Copy link
Copy Markdown
Contributor

!snapshot

@clerk-cookie

Copy link
Copy Markdown
Collaborator Author

Hey @panteliselef - the snapshot version command generated the following package versions:

Package Version
@clerk/backend 0.33.1-snapshot.v9b8869f
@clerk/chrome-extension 0.4.14-snapshot.v9b8869f
@clerk/clerk-js 4.64.3-snapshot.v9b8869f
@clerk/clerk-expo 0.19.16-snapshot.v9b8869f
@clerk/fastify 0.6.21-snapshot.v9b8869f
gatsby-plugin-clerk 4.4.22-snapshot.v9b8869f
@clerk/nextjs 4.26.3-snapshot.v9b8869f
@clerk/clerk-react 4.27.3-snapshot.v9b8869f
@clerk/remix 3.1.4-snapshot.v9b8869f
@clerk/clerk-sdk-node 4.12.20-snapshot.v9b8869f
@clerk/shared 1.1.0-snapshot.v9b8869f

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/backend

npm i @clerk/backend@0.33.1-snapshot.v9b8869f --save-exact

@clerk/chrome-extension

npm i @clerk/chrome-extension@0.4.14-snapshot.v9b8869f --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@4.64.3-snapshot.v9b8869f --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@0.19.16-snapshot.v9b8869f --save-exact

@clerk/fastify

npm i @clerk/fastify@0.6.21-snapshot.v9b8869f --save-exact

gatsby-plugin-clerk

npm i gatsby-plugin-clerk@4.4.22-snapshot.v9b8869f --save-exact

@clerk/nextjs

npm i @clerk/nextjs@4.26.3-snapshot.v9b8869f --save-exact

@clerk/clerk-react

npm i @clerk/clerk-react@4.27.3-snapshot.v9b8869f --save-exact

@clerk/remix

npm i @clerk/remix@3.1.4-snapshot.v9b8869f --save-exact

@clerk/clerk-sdk-node

npm i @clerk/clerk-sdk-node@4.12.20-snapshot.v9b8869f --save-exact

@clerk/shared

npm i @clerk/shared@1.1.0-snapshot.v9b8869f --save-exact

@panteliselef panteliselef self-assigned this Nov 2, 2023
@panteliselef
panteliselef added this pull request to the merge queue Nov 2, 2023
Merged via the queue into release/v4 with commit 7fa8fbc Nov 2, 2023
@panteliselef
panteliselef deleted the backport-release/v4-1745 branch November 2, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants