stacker.news/components
ekzyis f5569d7444
Only fetch logs when we need them (#1638)
* Don't fetch logs as anon

* Only fetch logs if we need them on the current page

* Wait for poll to finish with setTimeout

This makes sure that we wait for the pending poll to finish before we poll again. This prevents running multiple polls at the same time on slow connections.

I noticed we don't need to queue a new poll ourselves since a poll updates effect dependencies so we will cleanup and run the effect again anyway.

* Fix polling via useEffect abuse
2024-11-23 18:37:30 -06:00
..
nav Fixes around account switching / authentication (#1575) 2024-11-11 09:16:32 -06:00
vault fix vault key changes not seen by all instances of useVault 2024-11-05 17:25:18 -06:00
accordian-item.js Random CSS fixes (#1370) 2024-09-07 10:01:00 -05:00
account.js upgrade non-(apparently)-breaking major versions 2024-10-12 18:06:07 -05:00
action-dropdown.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
action-tooltip.js fix action tooltip container 2024-07-12 17:34:46 -05:00
adv-post-form.js better boost hints (#1441) 2024-10-02 19:24:01 -05:00
adv-post-form.module.css better boost hints (#1441) 2024-10-02 19:24:01 -05:00
autowithdraw-shared.js refactor wallet validation 2024-10-30 13:49:57 -05:00
avatar.js Allow video uploads (#1399) 2024-09-13 09:26:08 -05:00
badge.js fix anon badge 2024-10-12 18:05:45 -05:00
banners.js validate generated fields 2024-10-30 22:26:45 -05:00
banners.module.css
block-height.js add halving to price carousel 2024-04-16 17:58:26 -05:00
bolt11-info.js add lnc attached wallet (#1104) 2024-04-26 21:22:30 -05:00
bookmark.js
boost-button.js fix #1566 2024-11-19 19:12:18 -06:00
bounty-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
cancel-button.js cancel button spacing 2024-10-30 13:49:57 -05:00
carousel.js fixes #1395 (#1430) 2024-09-28 16:33:07 -05:00
carousel.module.css Image carousel (#1425) 2024-09-26 17:37:13 -05:00
chain-fee.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
charts-skeletons.js remove duplicative styles 2024-03-25 15:35:32 -04:00
charts.js Referral Rewards (#1262) 2024-07-10 19:23:05 -05:00
comment-edit.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
comment.js fix: upvote widget not rendered when comment is collapsed (#1583) 2024-11-16 17:04:49 -06:00
comment.module.css refine comment padding 2024-07-12 15:18:13 -05:00
comments.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
countdown.js Use invoice.cancelledAt to determine if invoice expired or was canceled by user (#1631) 2024-11-22 08:25:20 -06:00
dark-mode.js Fix missing useDarkMode update 2024-11-18 23:01:12 +01:00
delete.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
discussion-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
dont-link-this.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
embed.js dark mode for nostr embed 2024-09-28 20:02:33 -05:00
error-boundary.js decode minified stacktrace 2024-10-31 15:43:20 +01:00
fee-button.js server side config saves 2024-10-30 13:49:47 -05:00
fee-button.module.css
file-upload.js fix can't upload mp4 on safari (#1617) 2024-11-20 07:06:05 -06:00
footer-rewards.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
footer.js remove defunct chats from footer 2024-08-26 12:59:39 -05:00
footer.module.css Bottom nav uses fixed position to fix firefox bug (#1011) 2024-04-04 18:50:52 -05:00
form.js fix: reply storage is updated with the new content on file upload (#1585) 2024-11-16 17:23:07 -06:00
form.module.css user vault and server side client wallets 2024-10-30 13:41:09 -05:00
header.module.css refine hiding bottom navbar when virtual keyboard opens 2024-03-28 18:18:44 -05:00
hidden-wallet-summary.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
hoverable-popover.js refine popover close timing 2024-09-02 18:25:02 -05:00
info.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
invite.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
invoice-status.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
invoice.js Use invoice.cancelledAt to determine if invoice expired or was canceled by user (#1631) 2024-11-22 08:25:20 -06:00
invoice.module.css Implement deposit as receive paidAction (#1570) 2024-11-15 18:38:14 -06:00
item-act.js pages load *kazoo* 2024-10-30 13:45:05 -05:00
item-full.js fix #1451 2024-10-02 21:23:16 -05:00
item-info.js Fix edit countdown on deleted items (#1571) 2024-11-11 09:23:08 -06:00
item-job.js wallet streaks (#1468) 2024-10-11 19:14:18 -05:00
item-popover.js Item popover (#1162) 2024-05-15 12:05:50 -05:00
item.js make bio work as paid action 2024-10-02 18:39:56 -05:00
item.module.css rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
items.js server side config saves 2024-10-30 13:49:47 -05:00
items.module.css
job-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
layout.js fix ptr interfering with layout container 2024-11-18 17:33:45 -06:00
layout.module.css more spacing consistency 2024-03-27 14:04:04 -05:00
lightning-auth.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
lightning-auth.module.css
lightning.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
link-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
link-to-context.js turn #1063 logic into a component for use in all comment lists 2024-04-15 16:23:26 -05:00
link-to-context.module.css fix image/video clicks in notifications 2024-09-04 13:36:56 -05:00
log-message.js Wallet send+recv status derived from logs (#1559) 2024-11-18 16:46:24 -06:00
logger.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
login-button.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
login.js Fixes around account switching / authentication (#1575) 2024-11-11 09:16:32 -06:00
login.module.css
long-pressable.js Fix first zap when modal closed (#771) (#1055) 2024-04-12 18:37:04 -05:00
me.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
media-or-link.js fix uploaded videos don't load on safari (#1593) 2024-11-17 13:38:11 -06:00
modal.js user vault and server side client wallets 2024-10-30 13:41:09 -05:00
more-footer.js fix item spacing 2024-07-11 16:58:55 -05:00
mute.js honor mutes when sending push notifications (#1145) 2024-05-12 13:55:56 -05:00
nostr-auth.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
notifications.js Implement deposit as receive paidAction (#1570) 2024-11-15 18:38:14 -06:00
notifications.module.css make sure all notifications have the same padding 2024-07-19 14:47:12 -05:00
page-loading.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
past-bounties.js
pay-bounty.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
pay-bounty.module.css
payer-data.js
payment.js Remove unused function usePayment (#1641) 2024-11-23 12:21:39 -06:00
poll-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
poll.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
poll.module.css
post.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
price.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
pull-to-refresh.js Always use custom PTR on Android (#1607) 2024-11-18 19:13:52 -06:00
pull-to-refresh.module.css add body margin on ptr 2024-11-18 13:05:51 -06:00
qr.js get vault working 2024-10-30 13:49:57 -05:00
recent-header.js fix item spacing 2024-07-11 16:58:55 -05:00
related.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
reply.js no optimistic item repetition for anon 2024-09-26 09:44:14 -05:00
reply.module.css refine comment padding 2024-07-12 15:18:13 -05:00
root.js
search.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
search.module.css search all territories by default + more intuitive search filters 2024-03-26 18:37:40 -05:00
seo.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
serviceworker.js upgrade non-(apparently)-breaking major versions 2024-10-12 18:06:07 -05:00
share.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
snl.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
snow.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
sub-select.js server side config saves 2024-10-30 13:49:47 -05:00
sub-select.module.css enhance navigation 2024-03-26 18:36:31 -05:00
subscribe.js
subscribeUser.js honor mutes when sending push notifications (#1145) 2024-05-12 13:55:56 -05:00
table-of-contents.js Fix different slugs generated in ToC vs text (#1405) 2024-09-13 15:54:30 -05:00
territory-form.js rethinking boost (#1408) 2024-09-19 13:13:14 -05:00
territory-header.js wallet streaks (#1468) 2024-10-11 19:14:18 -05:00
territory-list.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
territory-payment-due.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
territory-transfer.js Account Switching (#644) 2024-09-12 13:05:11 -05:00
text.js Replace unicode currency symbols in inline math 2024-10-28 20:00:00 +01:00
text.module.css fix uploaded videos don't load on safari (#1593) 2024-11-17 13:38:11 -06:00
toast.js hide overflow of toasts 2024-07-09 11:46:38 -05:00
toast.module.css CSS animation for toasts and offcanvas (#1432) 2024-09-24 13:43:15 -05:00
top-header.js fix item spacing 2024-07-11 16:58:55 -05:00
upvote.js fix #1566 2024-11-19 19:12:18 -06:00
upvote.module.css fix #1628 2024-11-21 08:52:24 -06:00
usage-header.js fix: custom calendar dark theme (#1123) 2024-05-11 20:32:44 -05:00
use-client.js Reinitialize wallet form if initial values change + fix readOnly hydration error (#1354) 2024-09-03 09:15:04 -05:00
use-crossposter.js fix crossposting toast 2024-08-21 14:59:28 -05:00
use-data.js
use-debounce-callback.js server side config saves 2024-10-30 13:49:47 -05:00
use-has-new-notes.js env vars for polling intervals (#1038) 2024-04-08 09:13:12 -05:00
use-indexeddb.js fix account switch disconnect 2024-11-19 14:58:48 -06:00
use-item-submit.js allow comment updates when they have boost 2024-09-19 14:06:34 -05:00
use-local-state.js Fix WebLN checkbox unclickable (#1299) 2024-08-14 14:29:24 -05:00
use-no-initial-effect.js
use-paid-mutation.js sync/desync from localstorage on vault connect/disconnect 2024-10-30 18:37:45 -05:00
use-quote-reply.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
user-header.js fix qrcode display after upgrade 2024-10-12 18:06:07 -05:00
user-header.module.css Don't hide self in top even if hidden (#905) 2024-03-13 19:26:59 -05:00
user-list.js server side config saves 2024-10-30 13:49:47 -05:00
user-popover.js Item popover (#1162) 2024-05-15 12:05:50 -05:00
wallet-buttonbar.js Wallet send+recv status derived from logs (#1559) 2024-11-18 16:46:24 -06:00
wallet-card.js refactor: Check darkmode in useWallets (#1640) 2024-11-23 17:59:59 -06:00
wallet-image.js refactor: Check darkmode in useWallets (#1640) 2024-11-23 17:59:59 -06:00
wallet-logger.js Only fetch logs when we need them (#1638) 2024-11-23 18:37:30 -06:00