Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 706a754

Browse files
GatsbyJS Botchrsep
andauthored
fix: query on demand loading indicator always active on preact. (#29829) (#29882)
(cherry picked from commit fa1e2d6) Co-authored-by: Chrisando Pramudhita <[email protected]>
1 parent 9ecbc81 commit 706a754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby/cache-dir/loading-indicator/indicator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export function Indicator({ visible = true }) {
4242
<Style />
4343
<div
4444
data-gatsby-loading-indicator="root"
45-
data-gatsby-loading-indicator-visible={visible}
45+
// preact doesn't render data attributes with a literal bool false value to dom
46+
data-gatsby-loading-indicator-visible={visible.toString()}
4647
aria-live="assertive"
4748
>
4849
<div data-gatsby-loading-indicator="spinner" aria-hidden="true">

0 commit comments

Comments
 (0)