Skip to content

Commit

Permalink
Docs: Add warning on pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslombart committed Aug 2, 2024
1 parent 061a5cb commit 2709979
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api-reference/user-interface/grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ export default function Command() {

{% endtabs %}

{% hint style="warning" %}
Pagination might not work properly if all grid items are rendered and visible at once, as `onLoadMore` won't be triggered. This typically happens when an API returns 10 results by default, all fitting within the Raycast window. To fix this, try displaying more items, like 20.
{% endhint %}

## Examples

{% tabs %}
Expand Down
4 changes: 4 additions & 0 deletions docs/api-reference/user-interface/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ export default function Command() {
{% endtab %}
{% endtabs %}
{% hint style="warning" %}
Pagination might not work properly if all list items are rendered and visible at once, as `onLoadMore` won't be triggered. This typically happens when an API returns 10 results by default, all fitting within the Raycast window. To fix this, try displaying more items, like 20.
{% endhint %}
## Examples
{% tabs %}
Expand Down

0 comments on commit 2709979

Please sign in to comment.