Skip to content

Commit

Permalink
[docs] Hide hash support section from search parameters (#27660)
Browse files Browse the repository at this point in the history
# Why

<!--
Please describe the motivation for this PR, and link to relevant GitHub
issues, forums posts, or feature requests.
-->

Follow-up #27105


# How

<!--
How did you build this feature or fix this bug and why?
-->

After confirming with @marklawlor, the "Hash support" section is
unversioned for now so we should hide it.

# Test Plan

<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->

Run docs locally and visit:
http://localhost:3002/router/reference/search-parameters/

## Preview

![CleanShot 2024-03-14 at 17 50
16@2x](https://github.com/expo/expo/assets/10234615/207ddeff-1df1-4ecb-934a-14dead6c7454)


# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
  • Loading branch information
amandeepmittal committed Mar 14, 2024
1 parent 17cfbe9 commit 2ed5e7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/pages/router/reference/search-parameters.mdx
Expand Up @@ -252,9 +252,12 @@ export default function User() {
}
```

## Hash support
{/* ## Hash support */}

The URL [hash](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash) is a string that follows the `#` symbol in a URL. It is commonly used on websites to link to a specific section of a page, but it can also be used to store data. Expo Router treats the hash as a special search parameter using the name `#`. It can be accessed and modified using the same hooks and APIs from [search parameters](/router/reference/search-parameters/).
{/* The URL [hash](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash) is a string that follows the `#` symbol in a URL. It is commonly used on websites to link to a specific section of a page, but it can also be used to store data. Expo Router treats the hash as a special search parameter using the name `#`. It can be accessed and modified using the same hooks and APIs from [search parameters](/router/reference/search-parameters/). */}

{/* prettier-ignore */}
{/*
```tsx app/hash.tsx
import { Text } from 'react-native';
Expand All @@ -273,3 +276,5 @@ export default function User() {
);
}
```
\*/}

0 comments on commit 2ed5e7c

Please sign in to comment.