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