<commit_before>---
title: page.fetch
---

# Pages fetch

<p class="info">This method is advised to be used with the `store` and *only* for dispatching store actions.</p>

The `fetch` option, *if set*, is called every time before loading the component. It is called from the server-side or before navigating to the corresponding route.

## fetch(context)

- **Type:** `Function`
- **Arguments:**<commit_msg>Add alert<commit_after>---
title: page.fetch
---

# Pages fetch

<p class="Alert Alert--blue">This method is advised to be used with the `store` and *only* for dispatching store actions.</p>

The `fetch` option, *if set*, is called every time before loading the component. It is called from the server-side or before navigating to the corresponding route.

## fetch(context)

- **Type:** `Function`
- **Arguments:**
{'fraction_non_alphanumeric': 0.12911084043848964, 'fraction_numerical': 0.0, 'mean_word_length': 4.303225806451613, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1411174', 'n_tokens_mistral': 234, 'n_tokens_neox': 228, 'n_words': 105}