Buckets:
| /** | |
| * ReadonlyURLSearchParams implementation shared between client and server. | |
| * This file is intentionally not marked as 'use client' or 'use server' | |
| * so it can be imported by both environments. | |
| */ | |
| /** @internal */ | |
| class ReadonlyURLSearchParamsError extends Error { | |
| constructor() { | |
| super( | |
| 'Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams' | |
| ) | |
| } | |
| } | |
| /** | |
| * A read-only version of URLSearchParams that throws errors when mutation methods are called. | |
| * This ensures that the URLSearchParams returned by useSearchParams() cannot be mutated. | |
| */ | |
| export class ReadonlyURLSearchParams extends URLSearchParams { | |
| /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ | |
| append() { | |
| throw new ReadonlyURLSearchParamsError() | |
| } | |
| /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ | |
| delete() { | |
| throw new ReadonlyURLSearchParamsError() | |
| } | |
| /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ | |
| set() { | |
| throw new ReadonlyURLSearchParamsError() | |
| } | |
| /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ | |
| sort() { | |
| throw new ReadonlyURLSearchParamsError() | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.67 kB
- Xet hash:
- 48947a195e35db66695e23d4d9312643547c853dedfaf1b8f7203a12382908b3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.