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

__typename gets into model state #44

Open
Kashuab opened this issue May 30, 2023 · 0 comments
Open

__typename gets into model state #44

Kashuab opened this issue May 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Kashuab
Copy link
Owner

Kashuab commented May 30, 2023

Sometimes an error gets thrown from MobX stating "Cannot apply true to __typename: Field not found"

I'm not quite sure exactly what's happening under-the-hood, but I think the cause is that when someModel.assign(data) gets called within RootStore.resolve, the __typename gets provided when it shouldn't

@Kashuab Kashuab self-assigned this May 30, 2023
@Kashuab Kashuab added the bug Something isn't working label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant