Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/use-query-params/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import React from 'react'
import useQueryParams from '@scaleway/use-query-params'

const Component = () => {
const { queryParams, setQueryParams } = useQueryParams()
const { queryParams, replaceQueryParams } = useQueryParams()
const { user, company } = queryParams // user will be undefined and company will be "Scaleway"
const setUser = () => replaceQueryParams({ user: 'John' }) // user will be "John" and company will be undefined
// ?user=John
Expand Down