simulate error state I saw one time
This commit is contained in:
@@ -141,6 +141,7 @@ export function useFeedPreviews(
|
||||
enabled,
|
||||
queryKey: RQKEY(uris),
|
||||
queryFn: async ({pageParam}) => {
|
||||
throw new Error('Explore debug error')
|
||||
const feed = feeds[pageParam]
|
||||
const api = new CustomFeedAPI({
|
||||
agent,
|
||||
|
||||
@@ -23,6 +23,7 @@ export function useGetSuggestedFeedsQuery({enabled}: {enabled?: boolean}) {
|
||||
staleTime: STALE.MINUTES.THREE,
|
||||
queryKey: createGetSuggestedFeedsQueryKey(),
|
||||
queryFn: async () => {
|
||||
throw new Error('Explore debug error')
|
||||
const contentLangs = getContentLanguages().join(',')
|
||||
const {data} = await agent.app.bsky.unspecced.getSuggestedFeeds(
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@ export function useGetSuggestedUsersQuery(props: QueryProps) {
|
||||
staleTime: STALE.MINUTES.THREE,
|
||||
queryKey: createGetSuggestedUsersQueryKey(props),
|
||||
queryFn: async () => {
|
||||
throw new Error('Explore debug error')
|
||||
const contentLangs = getContentLanguages().join(',')
|
||||
const userInterests = aggregateUserInterests(preferences)
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ export function useGetTrendsQuery() {
|
||||
staleTime: STALE.MINUTES.THREE,
|
||||
queryKey: createGetTrendsQueryKey(),
|
||||
queryFn: async () => {
|
||||
throw new Error('Explore debug error')
|
||||
const contentLangs = getContentLanguages().join(',')
|
||||
const {data} = await agent.app.bsky.unspecced.getTrends(
|
||||
{
|
||||
|
||||
@@ -30,6 +30,7 @@ export function useSuggestedStarterPacksQuery({
|
||||
staleTime: STALE.MINUTES.THREE,
|
||||
queryKey: createSuggestedStarterPacksQueryKey(overrideInterests),
|
||||
queryFn: async () => {
|
||||
throw new Error('Explore debug error')
|
||||
const {data} = await agent.app.bsky.unspecced.getSuggestedStarterPacks(
|
||||
undefined,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user