Feature Name: (fill me in with a unique identity, myawesomefeature)
Type: (feature, enhancement)
Start Date: (fill me in with today's date, YYYY-MM-DD)
Author: (your names)
// TRPC API endpoint | |
// src/app/api/trpc/[trpc]/route.ts | |
import { fetchRequestHandler } from "@trpc/server/adapters/fetch"; | |
import { type NextRequest } from "next/server"; | |
import { env } from "~/env"; | |
import { appRouter } from "~/server/api/root"; | |
import { createTRPCContext } from "~/server/api/trpc"; | |
import { getAuth } from "@clerk/nextjs/server"; |
import { Suspense } from "react"; | |
export const fakeTimeout = (ms) => { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
}; | |
const wrapPromise = (promise) => { | |
let status = "pending"; | |
let result = ""; | |
let suspender = promise.then( |
function timeout(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
import {notifications as mantineNotifications} from '@mantine/notifications'; | |
import {IconCheck, IconExclamationMark, IconInfoCircle, IconX} from '@tabler/icons-react'; | |
import {create} from 'zustand'; | |
const NotificationTypeColors = { | |
error: 'red', | |
info: 'blue', | |
success: 'green', | |
warning: 'yellow', | |
loading: 'blue', |