[Stats Refresh] Insights Comments > Posts & Pages: show in web view - #10743
Conversation
frosty
left a comment
There was a problem hiding this comment.
Works as expected! 👍
I noticed that there's a retain cycle with StatsTotalRows, but I'm not quite sure where it's coming from. If you navigate in and out of the stats section a couple of times, you get a load of the rows hanging about:
I thought perhaps it was because the StatsTotalRowDelegate and SiteStatsInsightsDelegate properties need to be weak, but changing them both doesn't fix it.
Anyway, I don't think that should block this PR, as I don't think it introduced the issue – just something to be aware of!
| private var dataBarMaxWidth: Float = 0.0 | ||
| private typealias Style = WPStyleGuide.Stats | ||
|
|
||
| var delegate: StatsTotalRowDelegate? |
There was a problem hiding this comment.
Wow. It seems I failed on all the delegates. 🤦♂️ I've fixed this one. I'll go back and review the others and look at the StatsTotalRows retention. Thank you so much for noticing that!!
|
Looks good! |
…ights_comments_webview
…ights_comments_webview
Generated by 🚫 Danger |

Ref #10687
To test:
Posts and Pages.