mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Fix rerender bug with followed hashtag parent
And… somehow memoize it?
This commit is contained in:
parent
9a6364a674
commit
a68dccd7cf
1 changed files with 22 additions and 19 deletions
|
@ -407,7 +407,8 @@ function Status({
|
|||
}
|
||||
|
||||
// Check followedTags
|
||||
const FollowedTagsParent = ({ children }) => (
|
||||
const FollowedTagsParent = useCallback(
|
||||
({ children }) => (
|
||||
<div
|
||||
data-state-post-id={sKey}
|
||||
class="status-followed-tags"
|
||||
|
@ -427,6 +428,8 @@ function Status({
|
|||
</div>
|
||||
{children}
|
||||
</div>
|
||||
),
|
||||
[sKey, instance, snapStates.statusFollowedTags[sKey]],
|
||||
);
|
||||
const StatusParent =
|
||||
showFollowedTags && !!snapStates.statusFollowedTags[sKey]?.length
|
||||
|
|
Loading…
Reference in a new issue