├── .env ├── .eslintrc.json ├── .github ├── .kodiak.toml ├── dependabot.yml └── workflows │ └── nodejs.yml ├── .gitignore ├── .husky └── pre-commit ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── DEVNOTES.md ├── LICENSE ├── README.md ├── codecov.yml ├── lerna.json ├── package.json ├── src ├── examples │ ├── nextjs │ │ ├── README.md │ │ ├── components │ │ │ ├── AddName.tsx │ │ │ └── NamesList.tsx │ │ ├── next-env.d.ts │ │ ├── package.json │ │ ├── pages │ │ │ └── index.tsx │ │ └── tsconfig.json │ ├── react-router-use-location-state │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ └── manifest.json │ │ ├── src │ │ │ ├── App.tsx │ │ │ ├── components │ │ │ │ ├── Header.tsx │ │ │ │ ├── Nav.tsx │ │ │ │ └── QueryStateDisplay.tsx │ │ │ ├── index.tsx │ │ │ ├── pages │ │ │ │ ├── ArrayDemo.tsx │ │ │ │ ├── LocationStateDemo.tsx │ │ │ │ ├── QueryReducer │ │ │ │ │ ├── FilterDisplay.tsx │ │ │ │ │ ├── QueryReducer.tsx │ │ │ │ │ ├── QueryReducerTypes.ts │ │ │ │ │ └── filterReducer.ts │ │ │ │ ├── QueryStateDemo.tsx │ │ │ │ └── test │ │ │ │ │ ├── ArrayDemo.test.tsx │ │ │ │ │ ├── LocationStateTest.test.tsx │ │ │ │ │ ├── QueryStateTest.test.tsx │ │ │ │ │ └── __snapshots__ │ │ │ │ │ ├── LocationStateTest.test.tsx.snap │ │ │ │ │ └── QueryStateTest.test.tsx.snap │ │ │ ├── styles │ │ │ │ └── index.scss │ │ │ └── test │ │ │ │ └── App.test.tsx │ │ └── tsconfig.json │ └── use-location-state │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ └── manifest.json │ │ ├── src │ │ ├── App.tsx │ │ ├── components │ │ │ ├── Header.tsx │ │ │ ├── LocationStateCheckbox.tsx │ │ │ ├── Nav.tsx │ │ │ ├── QueryStateCheckbox.tsx │ │ │ └── QueryStateDisplay.tsx │ │ ├── hooks │ │ │ └── usePageComponent.tsx │ │ ├── index.tsx │ │ ├── pages │ │ │ ├── ArrayDemo.tsx │ │ │ ├── LocationStateDemo.tsx │ │ │ ├── QueryStateDemo.tsx │ │ │ └── test │ │ │ │ ├── ArrayDemo.test.tsx │ │ │ │ ├── LocationStateTest.test.tsx │ │ │ │ ├── QueryStateTest.test.tsx │ │ │ │ └── __snapshots__ │ │ │ │ ├── LocationStateTest.test.tsx.snap │ │ │ │ └── QueryStateTest.test.tsx.snap │ │ ├── styles │ │ │ └── index.scss │ │ └── test │ │ │ └── App.test.tsx │ │ └── tsconfig.json ├── helpers │ └── use-location-state-test-helpers │ │ ├── package.json │ │ └── test-helpers.ts └── packages │ ├── query-state-core │ ├── CHANGELOG.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── query-state-core.ts │ ├── test │ │ ├── parseQueryStateValue.test.ts │ │ ├── query-state-core.test.ts │ │ └── stripLeadingHashOrQuestionMark.test.ts │ └── tsconfig.json │ ├── react-router-use-location-state │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── react-router-use-location-state.ts │ │ ├── useLocationState │ │ │ ├── test │ │ │ │ └── valid-values.test.tsx │ │ │ ├── useLocationState.ts │ │ │ └── useReactRouterLocationStateInterface.ts │ │ └── useQueryState │ │ │ ├── test │ │ │ ├── batched-reset.test.tsx │ │ │ └── valid-values.test.tsx │ │ │ ├── useQueryState.ts │ │ │ └── useReactRouterQueryStringInterface.ts │ └── tsconfig.json │ └── use-location-state │ ├── CHANGELOG.md │ ├── index.d.ts │ ├── next.d.ts │ ├── next.js │ ├── package.json │ ├── rollup.config.js │ ├── src │ ├── hooks │ │ └── useRefLatest.ts │ ├── next.ts │ ├── test │ │ └── nextjs.test.tsx │ ├── types │ │ └── sharedTypes.ts │ ├── use-location-state.ts │ ├── useLocationState │ │ ├── test │ │ │ ├── invalid-values.test.ts │ │ │ ├── useLocationState.test.ts │ │ │ └── valid-values.test.ts │ │ ├── useLocationReducer.ts │ │ ├── useLocationState.ts │ │ ├── useLocationState.types.ts │ │ └── useLocationStateInterface.ts │ └── useQueryState │ │ ├── test │ │ ├── invalid-values.test.ts │ │ ├── method-default.test.ts │ │ ├── method-push.test.ts │ │ ├── method-replace.test.ts │ │ ├── useHashQueryState.test.ts │ │ ├── useQueryState.test.ts │ │ ├── useQueryStateObj.test.ts │ │ ├── useTestQueryStringInterface.ts │ │ └── valid-values.test.ts │ │ ├── useHashQueryState.ts │ │ ├── useHashQueryStringInterface.ts │ │ ├── useQueryReducer.ts │ │ ├── useQueryState.ts │ │ ├── useQueryState.types.ts │ │ └── useQueryStateObj.ts │ └── tsconfig.json ├── tsconfig.json └── yarn.lock /.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/.kodiak.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.github/.kodiak.toml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn pretty-quick --staged 5 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/.prettierrc -------------------------------------------------------------------------------- /DEVNOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/DEVNOTES.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/README.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/codecov.yml -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/lerna.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/package.json -------------------------------------------------------------------------------- /src/examples/nextjs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/README.md -------------------------------------------------------------------------------- /src/examples/nextjs/components/AddName.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/components/AddName.tsx -------------------------------------------------------------------------------- /src/examples/nextjs/components/NamesList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/components/NamesList.tsx -------------------------------------------------------------------------------- /src/examples/nextjs/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/next-env.d.ts -------------------------------------------------------------------------------- /src/examples/nextjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/package.json -------------------------------------------------------------------------------- /src/examples/nextjs/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/pages/index.tsx -------------------------------------------------------------------------------- /src/examples/nextjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/nextjs/tsconfig.json -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/CHANGELOG.md -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/README.md -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/package.json -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/public/favicon.ico -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/public/index.html -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/public/manifest.json -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/App.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/components/Header.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/components/Nav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/components/Nav.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/components/QueryStateDisplay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/components/QueryStateDisplay.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/index.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/ArrayDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/ArrayDemo.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/LocationStateDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/LocationStateDemo.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/QueryReducer/FilterDisplay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/QueryReducer/FilterDisplay.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/QueryReducer/QueryReducer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/QueryReducer/QueryReducer.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/QueryReducer/QueryReducerTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/QueryReducer/QueryReducerTypes.ts -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/QueryReducer/filterReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/QueryReducer/filterReducer.ts -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/QueryStateDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/QueryStateDemo.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/test/ArrayDemo.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/test/ArrayDemo.test.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/test/LocationStateTest.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/test/LocationStateTest.test.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/test/QueryStateTest.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/test/QueryStateTest.test.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/test/__snapshots__/LocationStateTest.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/test/__snapshots__/LocationStateTest.test.tsx.snap -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/pages/test/__snapshots__/QueryStateTest.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/pages/test/__snapshots__/QueryStateTest.test.tsx.snap -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/styles/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/styles/index.scss -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/src/test/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/src/test/App.test.tsx -------------------------------------------------------------------------------- /src/examples/react-router-use-location-state/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/react-router-use-location-state/tsconfig.json -------------------------------------------------------------------------------- /src/examples/use-location-state/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/CHANGELOG.md -------------------------------------------------------------------------------- /src/examples/use-location-state/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/README.md -------------------------------------------------------------------------------- /src/examples/use-location-state/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/package.json -------------------------------------------------------------------------------- /src/examples/use-location-state/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/public/favicon.ico -------------------------------------------------------------------------------- /src/examples/use-location-state/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/public/index.html -------------------------------------------------------------------------------- /src/examples/use-location-state/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/public/manifest.json -------------------------------------------------------------------------------- /src/examples/use-location-state/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/App.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/components/Header.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/components/LocationStateCheckbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/components/LocationStateCheckbox.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/components/Nav.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/components/Nav.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/components/QueryStateCheckbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/components/QueryStateCheckbox.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/components/QueryStateDisplay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/components/QueryStateDisplay.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/hooks/usePageComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/hooks/usePageComponent.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/index.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/ArrayDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/ArrayDemo.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/LocationStateDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/LocationStateDemo.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/QueryStateDemo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/QueryStateDemo.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/test/ArrayDemo.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/test/ArrayDemo.test.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/test/LocationStateTest.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/test/LocationStateTest.test.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/test/QueryStateTest.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/test/QueryStateTest.test.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/test/__snapshots__/LocationStateTest.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/test/__snapshots__/LocationStateTest.test.tsx.snap -------------------------------------------------------------------------------- /src/examples/use-location-state/src/pages/test/__snapshots__/QueryStateTest.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/pages/test/__snapshots__/QueryStateTest.test.tsx.snap -------------------------------------------------------------------------------- /src/examples/use-location-state/src/styles/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/styles/index.scss -------------------------------------------------------------------------------- /src/examples/use-location-state/src/test/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/src/test/App.test.tsx -------------------------------------------------------------------------------- /src/examples/use-location-state/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/examples/use-location-state/tsconfig.json -------------------------------------------------------------------------------- /src/helpers/use-location-state-test-helpers/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/helpers/use-location-state-test-helpers/package.json -------------------------------------------------------------------------------- /src/helpers/use-location-state-test-helpers/test-helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/helpers/use-location-state-test-helpers/test-helpers.ts -------------------------------------------------------------------------------- /src/packages/query-state-core/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/CHANGELOG.md -------------------------------------------------------------------------------- /src/packages/query-state-core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/package.json -------------------------------------------------------------------------------- /src/packages/query-state-core/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/rollup.config.js -------------------------------------------------------------------------------- /src/packages/query-state-core/src/query-state-core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/src/query-state-core.ts -------------------------------------------------------------------------------- /src/packages/query-state-core/test/parseQueryStateValue.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/test/parseQueryStateValue.test.ts -------------------------------------------------------------------------------- /src/packages/query-state-core/test/query-state-core.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/test/query-state-core.test.ts -------------------------------------------------------------------------------- /src/packages/query-state-core/test/stripLeadingHashOrQuestionMark.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/test/stripLeadingHashOrQuestionMark.test.ts -------------------------------------------------------------------------------- /src/packages/query-state-core/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/query-state-core/tsconfig.json -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/package.json -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/rollup.config.js -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/react-router-use-location-state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/react-router-use-location-state.ts -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useLocationState/test/valid-values.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useLocationState/test/valid-values.test.tsx -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useLocationState/useLocationState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useLocationState/useLocationState.ts -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useLocationState/useReactRouterLocationStateInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useLocationState/useReactRouterLocationStateInterface.ts -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useQueryState/test/batched-reset.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useQueryState/test/batched-reset.test.tsx -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useQueryState/test/valid-values.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useQueryState/test/valid-values.test.tsx -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useQueryState/useQueryState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useQueryState/useQueryState.ts -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/src/useQueryState/useReactRouterQueryStringInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/src/useQueryState/useReactRouterQueryStringInterface.ts -------------------------------------------------------------------------------- /src/packages/react-router-use-location-state/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/react-router-use-location-state/tsconfig.json -------------------------------------------------------------------------------- /src/packages/use-location-state/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/CHANGELOG.md -------------------------------------------------------------------------------- /src/packages/use-location-state/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/index.d.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/next.d.ts: -------------------------------------------------------------------------------- 1 | export * from './dist/next' 2 | -------------------------------------------------------------------------------- /src/packages/use-location-state/next.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/next.cjs') 2 | -------------------------------------------------------------------------------- /src/packages/use-location-state/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/package.json -------------------------------------------------------------------------------- /src/packages/use-location-state/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/rollup.config.js -------------------------------------------------------------------------------- /src/packages/use-location-state/src/hooks/useRefLatest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/hooks/useRefLatest.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/next.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/next.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/test/nextjs.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/test/nextjs.test.tsx -------------------------------------------------------------------------------- /src/packages/use-location-state/src/types/sharedTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/types/sharedTypes.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/use-location-state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/use-location-state.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/test/invalid-values.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/test/invalid-values.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/test/useLocationState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/test/useLocationState.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/test/valid-values.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/test/valid-values.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/useLocationReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/useLocationReducer.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/useLocationState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/useLocationState.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/useLocationState.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/useLocationState.types.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useLocationState/useLocationStateInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useLocationState/useLocationStateInterface.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/invalid-values.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/invalid-values.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/method-default.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/method-default.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/method-push.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/method-push.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/method-replace.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/method-replace.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/useHashQueryState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/useHashQueryState.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/useQueryState.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/useQueryState.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/useQueryStateObj.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/useQueryStateObj.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/useTestQueryStringInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/useTestQueryStringInterface.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/test/valid-values.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/test/valid-values.test.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useHashQueryState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useHashQueryState.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useHashQueryStringInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useHashQueryStringInterface.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useQueryReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useQueryReducer.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useQueryState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useQueryState.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useQueryState.types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useQueryState.types.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/src/useQueryState/useQueryStateObj.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/src/useQueryState/useQueryStateObj.ts -------------------------------------------------------------------------------- /src/packages/use-location-state/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/src/packages/use-location-state/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiel/use-location-state/HEAD/yarn.lock --------------------------------------------------------------------------------