This query gets the cache invalidated when claiming a fraction via the allow list flow:
{
allowlistRecords(
where: {user_address: {eq: <USER ADDRESS>}, claimed: {eq: false}}
) {
count
data {
claimed
}
}
}
This one doesn't:
{
allowlistRecords(
where: {user_address: {eq: <USER ADDRESS>}, claimed: {eq: false}}
) {
count
}
}
When we invalidate the cache based on supabase events, the upper query gets invalidated and when querying again gets the fresh data. The bottom query is unaffected by the invalidation and keeps showing the old data until TTL passes
This query gets the cache invalidated when claiming a fraction via the allow list flow:
{ allowlistRecords( where: {user_address: {eq: <USER ADDRESS>}, claimed: {eq: false}} ) { count data { claimed } } }This one doesn't:
{ allowlistRecords( where: {user_address: {eq: <USER ADDRESS>}, claimed: {eq: false}} ) { count } }When we invalidate the cache based on supabase events, the upper query gets invalidated and when querying again gets the fresh data. The bottom query is unaffected by the invalidation and keeps showing the old data until TTL passes