jon.m
10/12/2021, 11:02 PMuser
10/13/2021, 1:28 AMuser
10/13/2021, 1:28 AMcreate type stat as (
slug varchar,
displayName varchar,
base double precision,
multipliers double precision
);
user
10/13/2021, 1:29 AMuser
10/13/2021, 1:34 AMbase_rep: float8 | rep_multipliers: stat | base_hp: float8 | hp_multipliers: stat |
-----------------+----------------------------------+-----------------+----------------------------+
1 | [2, source_id, expires_at] | 100 | [1, source_id, expires_at] |
user
10/13/2021, 1:35 AMYogurtDrinker
10/13/2021, 6:41 AMrange()
option but i have no idea how to check whether there is additional datakhacvy
10/13/2021, 6:54 AMuseSWRInfinite
to handle infinite scroll. You can check my code. Hope this help you.
https://github.com/trankhacvy/together/blob/8fe069627fba268b658b75c02665b1ef7f0e2da0/src/components/pages/home/Home.tsx#L10YogurtDrinker
10/13/2021, 6:56 AMstate = {
items: null,
hasMore: true
}
async fetchData(startIndex, endIndex)
{
let { data, error} = await supabaseClient.from("Udemy").select().gt("expirationTime", new Date().toISOString()).range(startIndex, endIndex);
if (error)
{
console.log(error);
throw error;
}
return data;
}
async fetchMoreData()
{
//Get current value in items. Consistently concatenate with 20
let newItems = await fetchData(items.length, items.length + 20);
let concatenateItems = [...this.state.items, newItems]
this.setState({
items: concatenateItems
})
}
YogurtDrinker
10/13/2021, 6:57 AMhasMore: true
YogurtDrinker
10/13/2021, 6:58 AMkhacvy
10/13/2021, 6:59 AMcount
value with the current data length to determine hasMore
https://supabase.io/docs/reference/javascript/selectYogurtDrinker
10/13/2021, 7:27 AMrayyanmaq1
10/13/2021, 7:51 AMrayyanmaq1
10/13/2021, 7:52 AMalmkamberi
10/13/2021, 8:39 AMalmkamberi
10/13/2021, 8:39 AMYogurtDrinker
10/13/2021, 8:39 AMYogurtDrinker
10/13/2021, 8:39 AMalmkamberi
10/13/2021, 8:39 AMOlyno
10/13/2021, 8:55 AMalmkamberi
10/13/2021, 9:21 AMMDobs
10/13/2021, 10:45 AM.now
until the response is received?Hal
10/13/2021, 2:10 PM{
"statusCode": "413",
"error": "Payload too large",
"message": "The object exceeded the maximum allowed size"
}
but I can't find where to change the limit, somebody help?HarryET
10/13/2021, 2:12 PMHal
10/13/2021, 2:17 PMHal
10/13/2021, 2:48 PManand
10/13/2021, 3:13 PMHarryET
10/13/2021, 3:13 PM