stacker.news/components
ekzyis 4af445d242 Fix fetched data not shown if last action was title clear
There are two flows when clearing both inputs:

1. First clear title, then clear URL, then enter new URL

In this case, new data will be fetched when the URL is cleared since the title is empty. Due to the fetch with empty variables, the fetched data is essentially reset.
Entering a new URL thus triggers a new fetch (since title is still empty) and the fetched data is shown since it is different compared to the previous render.

2. First clear URL, then clear title, then enter new URL

In this case, new data will not be fetched when the URL is cleared since the title is not empty.
When entering a new URL, new data is fetched but will not be shown since the fetched data was never reset and thus did not change compared to the previous render.

This is fixed by always either a) resetting the fetched data or b) fetching new data if the URL changed.
2023-05-21 12:27:01 -05:00
..
accordian-item.js global modal + small fixes/enhancements 2023-01-10 17:13:37 -06:00
action-tooltip.js add polls 2022-07-30 08:51:04 -05:00
adv-post-form.js reuse validation on server 2023-02-08 13:39:53 -06:00
avatar.js job board enhancements 2022-07-21 17:55:05 -05:00
bookmark.js Implement bookmarking of posts and comments (#235) 2023-02-16 16:23:59 -06:00
bounty-form.js fix missing advanced options in bounty/discussion form 2023-05-16 13:30:19 -05:00
comment-edit.js reuse validation on server 2023-02-08 13:39:53 -06:00
comment.js improve comment performance 2023-05-06 16:51:17 -05:00
comment.module.css stackernews bounties (#227) 2023-01-26 10:11:55 -06:00
comments-flat.js improved top 2022-10-25 16:35:32 -05:00
comments.js give pinned item recent sort by default 2023-03-19 10:43:33 -05:00
countdown.js refactor replies and full items 2021-09-23 15:09:07 -05:00
cowboy-hat.js hide cowboy hat setting 2023-05-01 16:52:02 -05:00
delete.js Implement bookmarking of posts and comments (#235) 2023-02-16 16:23:59 -06:00
discussion-form.js fix missing advanced options in bounty/discussion form 2023-05-16 13:30:19 -05:00
dont-link-this.js Implement bookmarking of posts and comments (#235) 2023-02-16 16:23:59 -06:00
error-boundary.js improve comment performance 2023-05-06 16:51:17 -05:00
fee-button.js Disable post button while dupes are loading 2023-04-26 13:02:42 -05:00
fee-button.module.css spam fees 2022-08-11 15:38:10 -05:00
footer.js update footer 2023-05-09 17:52:24 -05:00
footer.module.css dark mode with css variables instead 2021-11-09 16:43:56 -06:00
form.js fix submit button not being disabled 2023-05-18 13:02:19 -05:00
form.module.css user suggestions on forward 2022-08-31 14:09:49 -05:00
fund-error.js global modal + small fixes/enhancements 2023-01-10 17:13:37 -06:00
header.js navbar fixes 2023-05-02 19:22:38 -05:00
header.module.css nostr sub 2023-05-01 15:58:30 -05:00
info.js prevent default on privacy invoice info click 2022-09-02 11:58:16 -05:00
invite.js full powered editing 2022-08-18 13:15:24 -05:00
invoice-status.js lightning login copy 2023-01-10 12:55:17 -06:00
invoice.js slashtags auth 2023-01-18 12:49:20 -06:00
invoice.module.css ready for invoices 2021-05-06 16:15:22 -05:00
item-act.js Mix default and custom tips during sort 2023-05-14 19:41:36 -05:00
item-full.js form enhancements 2023-05-11 14:34:42 -05:00
item-info.js form enhancements 2023-05-11 14:34:42 -05:00
item-job.js hide cowboy hat setting 2023-05-01 16:52:02 -05:00
item.js form enhancements 2023-05-11 14:34:42 -05:00
item.module.css stackernews bounties (#227) 2023-01-26 10:11:55 -06:00
items-mixed.js improve comment performance 2023-05-06 16:51:17 -05:00
items.js improve comment performance 2023-05-06 16:51:17 -05:00
items.module.css working search 2022-01-27 13:18:48 -06:00
job-form.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
layout-center.js donations to rewards 2022-12-07 18:04:02 -06:00
layout-center.module.css require sub selection, allow editting 2023-05-10 19:30:51 -05:00
layout-static.js nostr sub 2023-05-01 15:58:30 -05:00
layout.js nostr sub 2023-05-01 15:58:30 -05:00
lightning-auth.js navbar fixes 2023-05-02 19:22:38 -05:00
lightning-auth.module.css lightning login copy 2023-01-10 12:55:17 -06:00
lightning.js allow lightning animation to be disabled 2022-10-04 17:34:28 -05:00
link-form.js Fix fetched data not shown if last action was title clear 2023-05-21 12:27:01 -05:00
login-button.js slashtags auth 2023-01-18 12:49:20 -06:00
login.js navbar fixes 2023-05-02 19:22:38 -05:00
login.module.css more invite work 2021-10-15 13:05:34 -05:00
me.js fix 'me' on refresh 2022-09-06 10:08:53 -05:00
modal-button.js account linking 2022-06-08 16:26:44 -05:00
modal.js global modal + small fixes/enhancements 2023-01-10 17:13:37 -06:00
more-footer.js fixes for top 2023-02-03 13:10:18 -06:00
notifications.js improve comment performance 2023-05-06 16:51:17 -05:00
notifications.module.css highlight new notifications 2021-08-19 19:13:32 -05:00
past-bounties.js improve comment performance 2023-05-06 16:51:17 -05:00
pay-bounty.js improve comment performance 2023-05-06 16:51:17 -05:00
pay-bounty.module.css stackernews bounties (#227) 2023-01-26 10:11:55 -06:00
poll-form.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
poll.js global modal + small fixes/enhancements 2023-01-10 17:13:37 -06:00
poll.module.css add polls 2022-07-30 08:51:04 -05:00
post.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
price.js nostr sub 2023-05-01 15:58:30 -05:00
qr.js slashtags auth 2023-01-18 12:49:20 -06:00
recent-header.js nostr sub 2023-05-01 15:58:30 -05:00
related.js related items 2022-10-27 15:25:42 -05:00
reply.js placeholder when there aren't comments 2023-05-10 19:41:17 -05:00
reply.module.css stackernews bounties (#227) 2023-01-26 10:11:55 -06:00
root.js improve comment performance 2023-05-06 16:51:17 -05:00
search-items.js improve comment performance 2023-05-06 16:51:17 -05:00
search.js nostr sub 2023-05-01 15:58:30 -05:00
search.module.css search filters 2022-10-20 17:44:44 -05:00
seo.js allow user to visit/bookmark empty search page 2022-05-18 16:09:44 -05:00
share.js nostr sub 2023-05-01 15:58:30 -05:00
sub-select-form.js require sub selection, allow editting 2023-05-10 19:30:51 -05:00
table-of-contents.js nostr sub 2023-05-01 15:58:30 -05:00
text.js lexical beta test url 2023-01-05 13:24:09 -06:00
text.module.css fix blockquote spacing 2023-01-05 19:06:31 -06:00
top-header.js top cowboys 2023-02-09 12:41:28 -06:00
upload.js set cache control on uploads 2022-05-18 11:59:59 -05:00
upvote.js remove bolt on posts forwarding to self 2023-02-08 18:11:28 -06:00
upvote.module.css refine tipping experience, removing notion of upvote from UX 2022-01-20 17:04:12 -06:00
usage-header.js better user analytics mostly 2022-12-01 15:31:04 -06:00
user-header.js hide cowboy hat setting 2023-05-01 16:52:02 -05:00
user-header.module.css WIP profiles 2022-05-05 15:39:05 -05:00
user-list.js hide cowboy hat setting 2023-05-01 16:52:02 -05:00
when-charts.js referrals 2022-12-19 16:27:52 -06:00