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

mobx update issues when store is prop-drilled. #3778

Open
jainprabhash opened this issue Oct 22, 2023 · 1 comment
Open

mobx update issues when store is prop-drilled. #3778

jainprabhash opened this issue Oct 22, 2023 · 1 comment
Labels

Comments

@jainprabhash
Copy link

jainprabhash commented Oct 22, 2023

Intended outcome:

I was trying to update an observable on click of an ag-grid cell.

Actual outcome:

When I prop drill the store or the update action to the cellRenderer component, it doesn't update the observable. Because the component where the observable is used doesn't get re-rendered.
But when I use the store using the context API, everything works fine.
As per the documentation, there shouldn't be any such difference. Right?

Versions

mobx - 6.0.4
mobx-react - 7.0.5
react - 18

@urugator
Copy link
Collaborator

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

2 participants