1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 22:00:50 -05:00

backpedal a bit on caching

This commit is contained in:
2025-04-08 09:38:44 -04:00
parent 53d6f57699
commit 30b6e02b83
17 changed files with 373 additions and 579 deletions

View File

@@ -1,7 +1,7 @@
/* accessible invisibility stuff pulled from @reach/skip-nav:
https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css */
.skipNav {
.hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
@@ -12,7 +12,7 @@ https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css */
position: absolute;
}
.skipNav:focus {
.hidden:focus {
padding: 1rem;
position: fixed;
top: 10px;

View File

@@ -4,7 +4,7 @@ const skipNavId = "skip-nav";
export const SkipToContentLink = () => {
return (
<a href={`#${skipNavId}`} tabIndex={0} className={styles.skipNav}>
<a href={`#${skipNavId}`} tabIndex={0} className={styles.hidden}>
Skip to content
</a>
);

View File

@@ -12,7 +12,7 @@ export type TweetProps = Omit<ComponentPropsWithoutRef<typeof EmbeddedTweet>, "t
className?: string;
};
const fetchTweet = cache(async (id: string) => _fetchTweet(id), undefined, {
const fetchTweet = cache(_fetchTweet, undefined, {
revalidate: false, // cache indefinitely
tags: ["tweet"],
});