You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
When you want to keep reference to server driven components for later use, in some other view, the context data gets lost.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Construct server driven views inside toView using BeagleView constructor.
Pass them to a UIView class to hold them to pass and manipulate later.
Expected Results
I expect the aView and bView to hold their context data, but nothing of that gets displayed. All I get is empty strings. However if I return the UIStackView containing both aView and bView, then it works, but in case I hide and show the bView, then there are a few constraints that get broken, and it does not show again. I am trying to implement expandable and collapsable list using UITableView, dequeuing different row using different view.
Code example, screenshot, or link to a repository:
I'm not able to reproduce the problem with the code given (not enough information). Can you please provide us a sample project with the code that causes this problem in an isolated environment?
From your report, I imagine that there might be something clearing the context information when the view is hidden. Maybe you could try setting the height to zero instead of hiding it?
Another approach would be to control the collapsing via ServerDriven:
- Container - context: isListCollapsed (false)
- Button - onPress: toggle the value of isListCollapsed
- Collapsible (a custom component that can collapse its content) - collapsed: isListCollapsed
- ListView
Description
When you want to keep reference to server driven components for later use, in some other view, the context data gets lost.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Results
I expect the aView and bView to hold their context data, but nothing of that gets displayed. All I get is empty strings. However if I return the UIStackView containing both aView and bView, then it works, but in case I hide and show the bView, then there are a few constraints that get broken, and it does not show again. I am trying to implement expandable and collapsable list using UITableView, dequeuing different row using different view.
Code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: