NorthBit (Joakim)
NorthBit (Joakim)
KPCKevin Powell - Community
Created by NorthBit (Joakim) on 6/5/2024 in #front-end
Lagging scroll on mobile devices
Thanks for trying. yeah something is not well with it I will keep at it 👍
3 replies
KPCKevin Powell - Community
Created by NorthBit (Joakim) on 12/14/2022 in #front-end
Next.js can't create static pages
3 replies
KPCKevin Powell - Community
Created by NorthBit (Joakim) on 12/14/2022 in #front-end
Next.js can't create static pages
export async function getStaticPaths() { const storePaths = await getStorePaths() console.log(storePaths) return { paths: storePaths, fallback: true, } } export async function getStaticProps({ params }: any) { try { let products; let filters; const store: any = await getStore(params.slug, params.city).then(async (res) => { if (res) { res[0].likes = await getStoreLikes(res[0].store_id) res[0].followers = await getStoreFollowers(res[0].store_id) products = await initialize(res[0].store_id) filters = await getStoreProductfilters(res[0].store_id) } return res }) return { props: { store: store[0], products: products, filters: filters, }, } } catch (err: any) { console.log(err.message) } }
3 replies
KPCKevin Powell - Community
Created by NorthBit (Joakim) on 11/5/2022 in #front-end
Remove duplicates in array
3 replies