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:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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"],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user