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

Delete team from user object from client side #336

Open
ndeitch opened this issue Nov 8, 2024 · 0 comments
Open

Delete team from user object from client side #336

ndeitch opened this issue Nov 8, 2024 · 0 comments

Comments

@ndeitch
Copy link

ndeitch commented Nov 8, 2024

Description

I'm working on to delete users' team from client side, although neither user nor team object has delete function support in the client side (ServerTeam type does support team.delete())

I was reading the docs and it says that it should support, is the doc correct?

Environment

  • @stackframe/stack: 2.6.20
  • next: 15.0.3

How to reproduce

'use client'

import { useUser } from '@stackframe/stack'

export default function Page() {
  const user = useUser()
  const team = user.selectedTeam
  team.delete() // Property 'delete' does not exist on type 'Team'.ts(2339)

  return <h1>Deleted</h1>
}
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

No branches or pull requests

1 participant