Merge pull request #15899 from agriffis/fix/resetArgs-example-snippet

Fix resetArgs example snippet
This commit is contained in:
Michael Shilman 2021-08-24 11:21:43 +08:00 committed by GitHub
commit c548123eca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ const [args, updateArgs, resetArgs] = useArgs();
updateArgs({ key: 'value' });
// To reset one (or more) args:
resetArgs((argNames: ['key']));
resetArgs(['key']);
// To reset all args
resetArgs();