🎥 Make videos programmatically with React
Add @deprecated JSDoc tag to updateDefaultProps and update docs
Jonny Burger38ca4f67a49f
diff --git a/packages/docs/docs/studio/update-default-props.mdx b/packages/docs/docs/studio/update-default-props.mdxindex bd5a4bd08c..3048aaeb00 100644--- a/packages/docs/docs/studio/update-default-props.mdx+++ b/packages/docs/docs/studio/update-default-props.mdx@@ -4,14 +4,15 @@ title: updateDefaultProps()crumb: "@remotion/studio"----# updateDefaultProps()<AvailableFrom v="4.0.154"/>+# ~updateDefaultProps()~<AvailableFrom v="4.0.154"/>Updates the [`defaultProps`](/docs/composition) for a [composition](/docs/terminology/composition) and saves them back to the [root file](/docs/terminology/root-file).-This function is an alias for [`saveDefaultProps()`](/docs/studio/save-default-props).-:::info-Before v4.0.437, this function only updated the props in the Props Editor without saving them to the root file. Starting from v4.0.437, it also saves the props to the root file.+**Deprecated**: Before v4.0.437, this function only updated the props in the Props Editor without saving them to the root file.+Starting from v4.0.437, we eliminated the concept of "unsaved props" and now changes are always immediately reflected in the Props Editor.++This function is now an alias for [`saveDefaultProps()`](/docs/studio/save-default-props).:::## Examplesdiff --git a/packages/studio/src/api/update-default-props.ts b/packages/studio/src/api/update-default-props.tsindex b1b0dca1a5..ca3703dff8 100644--- a/packages/studio/src/api/update-default-props.ts+++ b/packages/studio/src/api/update-default-props.ts@@ -1,7 +1,8 @@import {saveDefaultProps} from './save-default-props';-/*- * @description Updates and saves the defaultProps for a composition back to the root file. Alias for saveDefaultProps().+/**+ * @deprecated Use `saveDefaultProps()` instead. This function is now an alias for `saveDefaultProps()`.+ * @description Updates and saves the defaultProps for a composition back to the root file.* @see [Documentation](https://www.remotion.dev/docs/studio/update-default-props)*/export const updateDefaultProps = saveDefaultProps;