Closed ThisALV closed 8 months ago
Look good to me, I know this issue, but I didn't fix it because I'm afraid some applications may rely on this behavior, and maintain the dataSource themselves. Before merging, I would like to ask @PoloNX @dragonflylee and @XITRIX if this will affect them.
btw, I am using another list in my own app, which supports variable height views or grid layout based on RecyclerList. If anyone is interested, I will synchronize it here.
https://github.com/xfangfang/wiliwili/blob/yoga/wiliwili/include/view/recycling_grid.hpp
To be honest I completely forgot the reason of why I commented it out, may be we could add bool releaseDataSourceOnDeinit
with true by default, in case someone would like to maintain datasource's lifecycle manually
To be honest I completely forgot the reason of why I commented it out, may be we could add
bool releaseDataSourceOnDeinit
with true by default, in case someone would like to maintain datasource's lifecycle manually
It’s a good idea. I don’t need to maintain it personally
maybe https://github.com/ITotalJustice/borealis/commit/842d4b290286c821065f0680610502edb1eb4d2e is another workaround solution
maybe ITotalJustice@842d4b2 is another workaround solution
Yup seems to work. Now I remember when I de-commented those lines I had segfault on dropdown item selection and I didn't understand why. I'll add another commit to address the issue by applying ITotalJustice fix to the PR.
Okay I've done the commit, now there's an optional bool parameter on setDataSource
allowing to prevent data source deletion by the RecyclerFrame and Dropdown constructor uses it.
Okay I've done the commit, now there's an optional bool parameter on
setDataSource
allowing to prevent data source deletion by the RecyclerFrame and Dropdown constructor uses it.
If it defaults to true. Is it a breaking change?
RecyclerDataSource wasn't deleted