sortable shouts onMount in expo (#371)

This commit is contained in:
Ilya Y 2024-01-21 11:56:38 +03:00 committed by GitHub
parent 0796b41a42
commit 439e27c603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -47,7 +47,6 @@ export const Expo = (props: Props) => {
const getLoadShoutsFilters = (additionalFilters: LoadShoutsFilters = {}): LoadShoutsFilters => {
const filters = { visibility: 'public', ...additionalFilters }
if (props.layout) {
filters.layout = props.layout
} else {
@ -132,7 +131,6 @@ export const Expo = (props: Props) => {
loadRandomTopArticles()
loadRandomTopMonthArticles()
},
{ defer: true },
),
)
@ -143,6 +141,7 @@ export const Expo = (props: Props) => {
const handleLoadMoreClick = () => {
loadMoreWithoutScrolling(LOAD_MORE_PAGE_SIZE)
}
return (
<div class={styles.Expo}>
<Show when={sortedArticles().length > 0} fallback={<Loading />}>

View File

@ -126,9 +126,6 @@ export const Lightbox = (props: Props) => {
),
)
createEffect(() => {
console.log('!!! pictureScalePercentage:', pictureScalePercentage())
})
return (
<div
class={clsx(styles.Lightbox, props.class)}