Skip to content

Commit 26f19d0

Browse files
committed
vault backup: 2025-05-14 09:50:39
Affected files: .obsidian/workspace.json fleeting-notes/2025-05-13.md fleeting-notes/2025-05-14.md permanent-notes/success-is-a-skipping-rope.md
1 parent 6e43d54 commit 26f19d0

File tree

4 files changed

+60
-46
lines changed

4 files changed

+60
-46
lines changed

.obsidian/workspace.json

Lines changed: 17 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,21 @@
44
"type": "split",
55
"children": [
66
{
7-
"id": "d6460554becccbee",
7+
"id": "44ff1ae743a5fd51",
88
"type": "tabs",
99
"children": [
10-
{
11-
"id": "a5a09607722bc0ac",
12-
"type": "leaf",
13-
"state": {
14-
"type": "markdown",
15-
"state": {
16-
"file": "permanent-notes/tech-im-interested-in-2025.md",
17-
"mode": "source",
18-
"source": false
19-
},
20-
"icon": "lucide-file",
21-
"title": "tech-im-interested-in-2025"
22-
}
23-
},
24-
{
25-
"id": "4a9500a1e23ebc8c",
26-
"type": "leaf",
27-
"state": {
28-
"type": "markdown",
29-
"state": {
30-
"file": "fleeting-notes/2025-04-24.md",
31-
"mode": "source",
32-
"source": false
33-
},
34-
"icon": "lucide-file",
35-
"title": "2025-04-24"
36-
}
37-
},
3810
{
3911
"id": "7135f723ee19931f",
4012
"type": "leaf",
4113
"state": {
4214
"type": "markdown",
4315
"state": {
44-
"file": "fleeting-notes/2025-05-07.md",
16+
"file": "fleeting-notes/2025-05-14.md",
4517
"mode": "source",
4618
"source": false
4719
},
4820
"icon": "lucide-file",
49-
"title": "2025-05-07"
21+
"title": "2025-05-14"
5022
}
5123
}
5224
]
@@ -81,7 +53,7 @@
8153
"state": {
8254
"type": "search",
8355
"state": {
84-
"query": "tag:#css",
56+
"query": "skipping",
8557
"matchingCase": false,
8658
"explainSearch": false,
8759
"collapseAll": false,
@@ -126,8 +98,7 @@
12698
}
12799
],
128100
"direction": "horizontal",
129-
"width": 303.5,
130-
"collapsed": true
101+
"width": 303.5
131102
},
132103
"right": {
133104
"id": "7d79c914da9cc99e",
@@ -200,16 +171,24 @@
200171
"obsidian-kanban:Create new board": false
201172
}
202173
},
203-
"active": "a5a09607722bc0ac",
174+
"active": "7135f723ee19931f",
204175
"lastOpenFiles": [
205-
"permanent-notes/zettelkasten.md",
176+
"fleeting-notes/2025-05-13.md",
177+
"fleeting-notes/2025-05-14.md",
178+
"permanent-notes/success-is-a-skipping-rope.md",
179+
"permanent-notes/svelte-basics.md",
180+
"fleeting-notes/2025-05-07.md",
181+
"permanent-notes/shiba-every-hour-a-twitter-bot-powered-by-github-actions.md",
182+
"permanent-notes/all-things-vector-tiles.md",
183+
"fleeting-notes/2025-04-24.md",
184+
"permanent-notes/how-use-npm-modules-client-side-in-astrojs.md",
185+
"permanent-notes/learning.md",
206186
"permanent-notes/tech-im-interested-in-2025.md",
187+
"permanent-notes/zettelkasten.md",
207188
"fleeting-notes/2025-04-20.md",
208-
"fleeting-notes/2025-05-07.md",
209189
"permanent-notes/pragmatism-over-perfectionism.md",
210190
"planning/Things I wanna build, write, do.md",
211191
"planning/Things I wanna build.md",
212-
"fleeting-notes/2025-04-24.md",
213192
"fleeting-notes/2025-05-05.md",
214193
"fleeting-notes/2025-05-03.md",
215194
"fleeting-notes/2025-04-23.md",
@@ -220,14 +199,6 @@
220199
"fleeting-notes/2025-04-07.md",
221200
"fleeting-notes/2025-04-05.md",
222201
"fleeting-notes/2025-03-27.md",
223-
"templates/new-permanent-note.md",
224-
"literature-notes/total-typescript-react-notes.md",
225-
"literature-notes/threejs-journey.md",
226-
"literature-notes/paypal-sdk.md",
227-
"literature-notes/does-edge-compute-replace-lambda-functions.md",
228-
"literature-notes/docker-basics.md",
229-
"literature-notes/total-typescript-notes.md",
230-
"fleeting-notes/2022-11-06.md",
231202
"retrospectives",
232203
"attachments/interative-hike-map.gif",
233204
"attachments/GX010518_1680688090641.jpg",

fleeting-notes/2025-05-13.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
publish_date: 2025-05-13
3+
tags:
4+
---
5+
6+
7+

fleeting-notes/2025-05-14.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
publish_date: 2025-05-14
3+
tags:
4+
- nextjs
5+
- ca
6+
---
7+
8+
Nextjs caching is quite complex, but its realtive well outlined here
9+
https://nextjs.org/docs/app/deep-dive/caching
10+
11+
12+
key takeaways so far
13+
14+
- shared `fetch` calls which are used in different RSC have memoised response. therefore this fetch:
15+
```js
16+
const dogResp = await fetch(`https://dog.ceo/api/breeds/image/random`);
17+
const dogJson = await dogResp.json();
18+
```
19+
would return the same response acrss _all_ react server components that called it.
20+
21+
This is a `react` feature and not a `next.js` feature. Only `GET` requests get memoised. So GQL queries dont have this side effect as GQL queries are made via a `POST` request. The workaround is to wrap these api calls in a `react.cache()` .
22+
23+
24+
- `export const dynamic = "force-dynamic";` is what forces next.js to render the page as a dynamic page other it will statically render it.
25+
26+
27+
There are four levels of caching to be aware of:
28+
29+
|Mechanism|What|Where|Purpose|Duration|
30+
|---|---|---|---|---|
31+
|[Request Memoization](https://nextjs.org/docs/app/deep-dive/caching#request-memoization)|Return values of functions|Server|Re-use data in a React Component tree|Per-request lifecycle|
32+
|[Data Cache](https://nextjs.org/docs/app/deep-dive/caching#data-cache)|Data|Server|Store data across user requests and deployments|Persistent (can be revalidated)|
33+
|[Full Route Cache](https://nextjs.org/docs/app/deep-dive/caching#full-route-cache)|HTML and RSC payload|Server|Reduce rendering cost and improve performance|Persistent (can be revalidated)|
34+
|[Router Cache](https://nextjs.org/docs/app/deep-dive/caching#client-side-router-cache)|RSC Payload|Client|Reduce server requests on navigation|User session or time-based|
35+

permanent-notes/success-is-a-skipping-rope.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ last_updated: 2025-02-26
55
description: I'm still working on this metaphor
66
status: draft
77
tags:
8+
- life
89
---
910

1011
It's hard to get going sometimes, the two most important traits that I have found so far is grit and discipline, but they're intertwined.

0 commit comments

Comments
 (0)