Skip to content

Instantly share code, notes, and snippets.

@lensbart
lensbart / react-router+7.6.2.patch
Created June 5, 2025 21:03
Add `getScrollContainer` prop to `<ScrollRestoration />` in `react-router@7.6.2`
diff --git a/node_modules/react-router/dist/development/chunk-NL6KNZEE.mjs b/node_modules/react-router/dist/development/chunk-NL6KNZEE.mjs
index f54f35c..c0ab4cf 100644
--- a/node_modules/react-router/dist/development/chunk-NL6KNZEE.mjs
+++ b/node_modules/react-router/dist/development/chunk-NL6KNZEE.mjs
@@ -9082,6 +9082,7 @@ var Form = React10.forwardRef(
Form.displayName = "Form";
function ScrollRestoration({
getKey,
+ getScrollContainer,
storageKey,
@lensbart
lensbart / apply-patches.ts
Last active June 5, 2025 21:21
Re-apply patches to an upgraded NPM package
// scripts/apply-patches.ts
import assert from "node:assert/strict"
import { readFileSync, readdirSync, writeFileSync } from "node:fs"
import { dirname, join } from "node:path"
import { fileURLToPath } from "node:url"
const __filename = fileURLToPath(import.meta.url)
const rootPath = join(dirname(__filename), "../..")
@lensbart
lensbart / react-router+7.6.0.patch
Created May 20, 2025 14:11
Patch to `react-router@7.6.0` adding a `getScrollContainer` prop to `<ScrollRestoration />`
diff --git a/node_modules/react-router/dist/development/chunk-D4RADZKF.mjs b/node_modules/react-router/dist/development/chunk-D4RADZKF.mjs
index d3dd919..fcbb73c 100644
--- a/node_modules/react-router/dist/development/chunk-D4RADZKF.mjs
+++ b/node_modules/react-router/dist/development/chunk-D4RADZKF.mjs
@@ -9044,6 +9044,7 @@ var Form = React10.forwardRef(
Form.displayName = "Form";
function ScrollRestoration({
getKey,
+ getScrollContainer,
storageKey,
% terraform apply -auto-approve
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with
the following symbols:
+ create
Terraform will perform the following actions:
# cloudflare_record.www will be created
+ resource "cloudflare_record" "www" {