From ffbf9dae067b495c015a306aeb1299900f123533 Mon Sep 17 00:00:00 2001 From: Aron Griffis Date: Mon, 23 Aug 2021 14:07:58 -0400 Subject: [PATCH] Fix resetArgs example snippet --- docs/snippets/common/args-usage-with-addons.js.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/common/args-usage-with-addons.js.mdx b/docs/snippets/common/args-usage-with-addons.js.mdx index 7c1ccf730ef..a86ae5b595c 100644 --- a/docs/snippets/common/args-usage-with-addons.js.mdx +++ b/docs/snippets/common/args-usage-with-addons.js.mdx @@ -9,8 +9,8 @@ const [args, updateArgs, resetArgs] = useArgs(); updateArgs({ key: 'value' }); // To reset one (or more) args: -resetArgs((argNames: ['key'])); +resetArgs(['key']); // To reset all args resetArgs(); -``` \ No newline at end of file +```