Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☔️ feat: support defaultValues with query string #11021

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bluebill1049
Copy link
Member

@bluebill1049 bluebill1049 commented Oct 8, 2023

Support defaultValues with query string

  • Support populate form defaultValues with query string
  • Allow form to be populated with query string default-values
  • Skip populate if defaultValues props supplied with useForm
http://localhost:3000/basic/queryString?default-values=${encodeURIComponent(
  JSON.stringify({
    firstName: 'bill',
    lastName: 'luo',
    nestItem: {
      nest1: 'nest1',
    },
    arrayItem: [{ test1: 'test1' }],
    radio: '1',
    multiple: 'optionA',
    checkboxArray: ['1', '2', '3'],
    selectNumber: '1',
    minDate: '2023-10-23',
  }),
)}

@codesandbox
Copy link

codesandbox bot commented Oct 8, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bluebill1049 bluebill1049 changed the title ☔️ feat: support defaultValues with query string ☔️ feat: support defaultValues with query string Oct 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2023

Size Change: +127 B (+1%)

Total Size: 20.2 kB

Filename Size Change
dist/index.cjs.js 10.1 kB +62 B (+1%)
dist/index.umd.js 10.1 kB +65 B (+1%)

compressed-size-action

@bluebill1049 bluebill1049 marked this pull request as draft October 9, 2023 20:07
Copy link

stale bot commented Dec 15, 2023

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

@stale stale bot added the stale label Dec 15, 2023
Copy link

stale bot commented Mar 13, 2024

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

@stale stale bot added the stale label Mar 13, 2024
Copy link

stale bot commented Apr 22, 2024

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

@stale stale bot added the stale label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant