Skip to content

Commit

Permalink
duration render fix, disable recursive fetching on cache clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Dec 25, 2021
1 parent 67d174b commit 4376564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ moment.locale('en', {
relativeTime: {
future: 'in %s',
past: '%s ago',
s: '%ss',
ss: '%ss',
s: '%ds',
ss: '%ds',
m: '%dm',
mm: '%dm',
h: '%dh',
Expand Down
1 change: 1 addition & 0 deletions src/s3tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ export function S3Tree({ bucket = '', prefix }: { bucket: string, prefix?: strin
console.log("Rows:", rows, `keyPieces:`, keyPieces, 'ancestors:', ancestors)

function clearCache() {
setEagerMetadata(false)
fetcher.clearCache()
setFetcherNonce({})
}
Expand Down

0 comments on commit 4376564

Please sign in to comment.