Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(web): favicon picker offscreen preview no longer loses its published URL #22530

Closedtris203(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/22530/headopened View on GitHub

Showing 1 changed file with 5 additions and 1 deletion.

x
0 of 1 viewed, 1 left
5 additions and 1 deletionapps/web/src/components/settings/ProjectFaviconPickerDialog.browser.test.tsxModified
View file
@@ -131,7 +131,11 @@
​
function addFiles(paths: string[]) {
state.entries = paths.map((path) => ({ path, kind: "file" }));
- for (const path of paths) state.assets.set(path, Atom.make<AssetResult>(AsyncResult.initial()));
+ // The fake server result lives only in the registry node. Without keepAlive, a URL
+ // published after a row renders but before its effect subscribes is dropped with the node.
+ for (const path of paths) {
+ state.assets.set(path, Atom.make<AssetResult>(AsyncResult.initial()).pipe(Atom.keepAlive));
+ }
​
function fileRow(path: string) {