Skip to content

Commit 4652e51

Browse files
committed
documentation #3164 Add clarification of component re-rendering vs. loading content (Wertisdk)
This PR was merged into the 2.x branch. Discussion ---------- Add clarification of component re-rendering vs. loading content | Q | A | -------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Documentation? | yes <!-- required for new features, or documentation updates --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Add a note that explains that the re-rendering loading states is a different concept from the components initial loading state regarding placeholders, with a link to the related "loading content" section in this doc Add a note that explains that the re-rendering loading states is a different concept from the components initial loading state regarding placeholders, with a link to the related "loading content" section in this doc. This helps avoid confusion when a reader initially looks up the "loading state" section without knowing of the two concepts. Commits ------- 388cee1 Add clarification about difference between component re-rendering and initial loading
2 parents cadda07 + 388cee1 commit 4652e51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,9 @@ Or, to *hide* an element while the component is loading:
998998
<!-- hide when the component is loading -->
999999
<span data-loading="hide">Saved!</span>
10001000

1001+
Note that this is a different concept than showing a placeholder when initially loading the component itself.
1002+
See :ref:`loading content <loading-content>` for more info.
1003+
10011004
Adding and Removing Classes or Attributes
10021005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10031006

0 commit comments

Comments
 (0)