-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Dynamic Tab Items #3312
Comments
Duplicate of #3165 |
Thanks! #3165 was helpful for getting the currentScene within the children scenes of my Tabs scene. It's still unclear to me how to properly use the current scene stored in mobx to create dynamic tab items, because when renderRightButton is called the value of the observable 'scene' variable in mobx hasn't been updated yet. Is there a way to refresh the props of the parent Tabs scene from a child scene? I'm currently calling Actions.refresh() at the top of the render function of my child scene which is working, but I'm not sure if this is the ideal way of achieving this. |
I think it is OK |
Just noticed that calling Actions.refresh() at the top of the render function like that is giving me the following warning:
Thanks for your help |
Make sure to wrap it with |
Version
v4.0.1
Expected behaviour
I'm trying to have a different right tab item for each tab.
Actual behaviour
I'm trying to use renderRightButton but the value of Actions.currentScene each time the renderRightButton prop is called is still the value of the previous screen. Is there a proper way to do this?
The text was updated successfully, but these errors were encountered: