use-query-params

React Hook for managing state in URL query parameters with easy serialization.

ISC License

Downloads
2.9M
Stars
2.2K
Committers
32
use-query-params -

Published by pbeshai almost 5 years ago

  • Resolves #67 by updating serialize-query-params to v0.2.0 (handles values like foo--1 -> foo: "-1" in object serializing)
use-query-params -

Published by pbeshai almost 5 years ago

  • Aims to resolve #57 by running clean before building in prepublishOnly to get rid of old files that caused some people issues.
use-query-params -

Published by pbeshai almost 5 years ago

  • Resolves #54 via #61 - concurrent updates with React Router will now work by looking at history.location instead of the provided location if available.
use-query-params -

Published by pbeshai almost 5 years ago

  • Includes fix for initial values of SSR #58 #51
use-query-params -

Published by pbeshai about 5 years ago

  • Resolves #55 SSR with useQueryParams
use-query-params -

Published by pbeshai about 5 years ago

  • Resolves #46 by fixing the way memoization works on the setters returned from useQueryParam and useQueryParams. Also does automatic memoization on the paramConfigMap passed into useQueryParams to prevent it from re-generating new values and setters unnecessarily.
use-query-params -

Published by pbeshai about 5 years ago

  • Security vulnerabilities fixed and serialize-query-params bumped to 0.1.4
use-query-params -

Published by pbeshai about 5 years ago

  • Resolves #36 by adding in withUrlParams HOC and <QueryParams> render-props component
use-query-params -

Published by pbeshai about 5 years ago

  • Resolves #13 Next.js problems via #25 (SSR should work)
  • Resolves #27 peer dependency was specified incorrectly
use-query-params -

Published by pbeshai over 5 years ago

  • Resolves #15 by switching to query-string 5
  • Resolves #18 by adding esm build
use-query-params -

Published by pbeshai over 5 years ago

  • Resolves #11 by adjusting compilation settings to work with ES5
use-query-params - v0.3.1

Published by pbeshai over 5 years ago

  • Resolves #10: makes it so the query object returned from useQueryParams remains the same unless one of its values changes.
use-query-params - v0.3.0

Published by pbeshai over 5 years ago

Breaking Changes

  • No longer looks for a query object on location since the history package got rid of that in version 4.0.0. (#7)
  • When encoding parameters that are not explicitly configured, defaults to converting them to strings.

Other Changes

use-query-params -

Published by pbeshai over 5 years ago

Breaking Change

  • Resolved issue: #1 (see #2)
    • Switches ArrayParam and NumericArrayParam to work with arr=a&arr=b&arr=c -> ['a', 'b', 'c'] style.
    • Renames old ArrayParam to DelimitedArrayParam, NumericArrayParam to DelimitedNumericArrayParam
    • Adds safe handling of array inputs to all parameters