Skip to content

Instantly share code, notes, and snippets.

View subvertallchris's full-sized avatar
💭
🤘 brutal

Chris Grigg subvertallchris

💭
🤘 brutal
  • Long Island City, NY
View GitHub Profile
@subvertallchris
subvertallchris / react-shortcuts.d.ts
Created August 22, 2017 19:53
TypeScript defs for avocode/react-shortcuts
// Type definitions for react-shortcuts v1.6.0
// Project: https://github.com/avocode/react-shortcuts
// Definitions by: Chris Grigg <https://github.com/subvertallchris>
/// <reference types="react"/>
declare namespace ReactShortcuts {
type PlatformType = 'osx' | 'windows' | 'linux' | 'other';
interface Keymap {
@subvertallchris
subvertallchris / CacheBusterContainer.tsx
Last active August 10, 2023 01:26
Next.js app directory client cache busting
'use server';
import * as React from 'react';
import { revalidateAction } from './cacheBusterAction';
import { ClientCacheBusterContainer } from './ClientCacheBuster';
export const CacheBusterContainer = ({ children }: { children: React.ReactNode }) => {
return <ClientCacheBusterContainer revalidateAction={revalidateAction}>{children}</ClientCacheBusterContainer>;
};