debug-detect

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

View File

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