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

Prevent calling jazz-react Auth providers with new #209

Open
aeplay opened this issue Jun 12, 2024 · 1 comment
Open

Prevent calling jazz-react Auth providers with new #209

aeplay opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels

Comments

@aeplay
Copy link
Contributor

aeplay commented Jun 12, 2024

This is particularly problematic in pure-JS projects where you can't annotate JazzReactContext with the account schema manually

@aeplay aeplay added the dx label Jun 12, 2024
@aeplay aeplay closed this as completed Jun 12, 2024
@aeplay
Copy link
Contributor Author

aeplay commented Jun 12, 2024

this is apparently already the case, but fails if you call new on the Auth provider which is doesn't complain in plain JS VsCode

@aeplay aeplay reopened this Jun 12, 2024
@aeplay aeplay changed the title Auth providers should infer type of provided AccountSchema Prevent calling jazz-react Auth providers with new Jun 12, 2024
@aeplay aeplay self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant