debug-detect

This commit is contained in:
Untone 2024-01-31 18:35:40 +03:00
parent 2103db3ebd
commit c234ab1c2b

View File

@ -81,11 +81,14 @@ export const FollowingProvider = (props: { children: JSX.Element }) => {
}
createEffect(() => {
if (author() && !subscriptions?.authors?.length && !subscriptions?.topics?.length) {
if (author()) {
console.debug('[context.following] author detect')
if (!subscriptions?.authors?.length && !subscriptions?.topics?.length) {
// && subscriptions.communites?.length
console.debug('[context.following] author with no subs detected')
console.debug('[context.following] no subs detected')
fetchData()
}
}
})
const setFollowing = (what: FollowingEntity, slug: string, value = true) => {