diff --git a/docs/blocks/button.mdx b/docs/blocks/button.mdx index 5f7533f..ee521f5 100644 --- a/docs/blocks/button.mdx +++ b/docs/blocks/button.mdx @@ -163,7 +163,7 @@ A button that increments a counter ```tsx import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. View the announcement below this example. Devvit.addCustomPostType({ name: 'Say Hello', render: (context) => { @@ -180,3 +180,4 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) \ No newline at end of file diff --git a/docs/blocks/image.mdx b/docs/blocks/image.mdx index 15da858..35070cf 100644 --- a/docs/blocks/image.mdx +++ b/docs/blocks/image.mdx @@ -183,7 +183,8 @@ A button that increments a counter ```tsx import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. + Devvit.addCustomPostType({ name: 'Say Hello', render: (context) => { @@ -200,6 +201,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### Example diff --git a/docs/capabilities/blocks/app_image_assets.md b/docs/capabilities/blocks/app_image_assets.md index 8081eb4..ec8e5c4 100644 --- a/docs/capabilities/blocks/app_image_assets.md +++ b/docs/capabilities/blocks/app_image_assets.md @@ -65,7 +65,7 @@ const render: Devvit.CustomPostComponent = () => { ); }; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My custom post', description: 'Test custom post for showing a custom asset!', @@ -86,6 +86,7 @@ Devvit.addMenuItem({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) 4. Run `devvit upload`. 5. Install or update your app on your subreddit. diff --git a/docs/capabilities/blocks/dimensions.md b/docs/capabilities/blocks/dimensions.md index a2404f2..78651f0 100644 --- a/docs/capabilities/blocks/dimensions.md +++ b/docs/capabilities/blocks/dimensions.md @@ -16,7 +16,7 @@ You can use dimensions to: ## Getting dimensions :::warning Deprecation notice -`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. +`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. [View announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ::: Dimension information is specified in density-independent pixels. These pixel units are located on the context object. @@ -32,7 +32,7 @@ Dimension information is specified in density-independent pixels. These pixel un This example shows a custom post that specifies dimensions. ```tsx -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Dimensions app', render: (context) => { @@ -40,6 +40,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) This example shows that dimensions always references the root element, even if it’s in a child element. Although `MyHeader` is a component within the root element, this does not change the custom post dimensions provided in the context object. @@ -58,7 +59,7 @@ export const MyHeader: Devvit.BlockComponent = (props, context) => { ); }; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Name', render: (_context) => { @@ -66,6 +67,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ## Limitations diff --git a/docs/capabilities/blocks/working_with_useasync.md b/docs/capabilities/blocks/working_with_useasync.md index 0404443..c74afd4 100644 --- a/docs/capabilities/blocks/working_with_useasync.md +++ b/docs/capabilities/blocks/working_with_useasync.md @@ -154,13 +154,14 @@ const App = () => { }; //add your custom post -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'AppName', description: 'Using useAsync with XKCD API', render: App, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ## When to use useAsync and useState diff --git a/docs/capabilities/blocks/working_with_useinterval.md b/docs/capabilities/blocks/working_with_useinterval.md index 1828511..3b7a436 100644 --- a/docs/capabilities/blocks/working_with_useinterval.md +++ b/docs/capabilities/blocks/working_with_useinterval.md @@ -59,7 +59,7 @@ function getCurrentTime() { return `${hours}:${minutes}:${seconds}`; } -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Clock', render: (context) => { @@ -77,3 +77,4 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) \ No newline at end of file diff --git a/docs/capabilities/blocks/working_with_usestate.md b/docs/capabilities/blocks/working_with_usestate.md index be09c06..f156f63 100644 --- a/docs/capabilities/blocks/working_with_usestate.md +++ b/docs/capabilities/blocks/working_with_usestate.md @@ -144,13 +144,14 @@ const CountPage: Devvit.BlockComponent = ({ navigate, setCount, count }, }; //add your custom post -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'AppName', description: 'Navigate between pages and count!', render: App, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) In this example, when a user session ends, state will no longer be available to the app. To save and persist data between sessions you will need to [store data server-side via the Redis](../server/redis). diff --git a/docs/capabilities/client/forms.mdx b/docs/capabilities/client/forms.mdx index 78e2ff3..bd137e4 100644 --- a/docs/capabilities/client/forms.mdx +++ b/docs/capabilities/client/forms.mdx @@ -77,7 +77,7 @@ A form lets your app ask users to input and submit data. Forms can be defined wi import { Devvit, useState, useForm } from '@devvit/public-api'; // Interactive post with form - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'FormExample', render: (context) => { @@ -139,6 +139,7 @@ A form lets your app ask users to input and submit data. Forms can be defined wi }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### Methods @@ -1049,7 +1050,7 @@ Below is a collection of common use cases and patterns. redditAPI: true, }); - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Multi-step Form', render: (context) => { @@ -1133,6 +1134,7 @@ Below is a collection of common use cases and patterns. }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/docs/capabilities/client/navigation.mdx b/docs/capabilities/client/navigation.mdx index 859d097..3b143ed 100644 --- a/docs/capabilities/client/navigation.mdx +++ b/docs/capabilities/client/navigation.mdx @@ -93,7 +93,7 @@ When linking to Reddit content, the navigation function requires the app account }); // Interactive post with navigation - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Navigation Post', render: (context) => { @@ -132,6 +132,7 @@ When linking to Reddit content, the navigation function requires the app account }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### Parameters diff --git a/docs/capabilities/client/overview.mdx b/docs/capabilities/client/overview.mdx index 508156a..7274663 100644 --- a/docs/capabilities/client/overview.mdx +++ b/docs/capabilities/client/overview.mdx @@ -46,7 +46,7 @@ Client-side effects enable your Devvit app to provide interactive feedback and n import { Devvit } from '@devvit/public-api'; // In a custom post component - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Interactive Post', render: (context) => { @@ -82,6 +82,7 @@ Client-side effects enable your Devvit app to provide interactive feedback and n }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/docs/capabilities/client/toasts.mdx b/docs/capabilities/client/toasts.mdx index 580543f..6d94f09 100644 --- a/docs/capabilities/client/toasts.mdx +++ b/docs/capabilities/client/toasts.mdx @@ -93,7 +93,7 @@ Toasts will not work from scheduled jobs or triggers. }); // Example in blocks - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My Custom Post', render: (context) => { @@ -111,6 +111,7 @@ Toasts will not work from scheduled jobs or triggers. }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### Parameters diff --git a/docs/capabilities/server/cache-helper.mdx b/docs/capabilities/server/cache-helper.mdx index 894e296..c7724bf 100644 --- a/docs/capabilities/server/cache-helper.mdx +++ b/docs/capabilities/server/cache-helper.mdx @@ -238,7 +238,7 @@ Here’s a way to set up in-app caching instead of using scheduler or interval t // other capabilities }); - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Name', render: (context) => { @@ -280,5 +280,6 @@ Here’s a way to set up in-app caching instead of using scheduler or interval t export default Devvit; ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/docs/capabilities/server/post-data.mdx b/docs/capabilities/server/post-data.mdx index 3e8a22e..2c417ff 100644 --- a/docs/capabilities/server/post-data.mdx +++ b/docs/capabilities/server/post-data.mdx @@ -310,7 +310,7 @@ To update post data after creation, fetch the post and use the `setPostData()` m ```ts title="main.tsx" import { Devvit, useForm } from '@devvit/public-api'; - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'InteractivePost', render: (context) => { @@ -350,6 +350,7 @@ To update post data after creation, fetch the post and use the `setPostData()` m }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) @@ -379,7 +380,7 @@ Post data is available through `context.postData` in both client and server cont ```tsx title="main.tsx" import { Devvit } from '@devvit/public-api'; - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'MyCustomPost', render: (context) => { @@ -392,6 +393,7 @@ Post data is available through `context.postData` in both client and server cont }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/docs/capabilities/server/settings-and-secrets.mdx b/docs/capabilities/server/settings-and-secrets.mdx index 5b3d690..7b70c20 100644 --- a/docs/capabilities/server/settings-and-secrets.mdx +++ b/docs/capabilities/server/settings-and-secrets.mdx @@ -293,7 +293,7 @@ Settings can be retrieved from within your app. }); // Access in custom post type - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'ConfigurablePost', render: (context) => { @@ -312,6 +312,7 @@ Settings can be retrieved from within your app. }, }); ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) @@ -621,7 +622,7 @@ Here's a complete example showing both secrets and subreddit settings in action: return data.choices[0]?.message?.content || 'No response'; } - // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. + // addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'AI Assistant', render: (context) => { @@ -645,6 +646,7 @@ Here's a complete example showing both secrets and subreddit settings in action: export default Devvit; ``` + [View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/docs/earn-money/payments/support_this_app.md b/docs/earn-money/payments/support_this_app.md index e17dc83..8fdee3c 100644 --- a/docs/earn-money/payments/support_this_app.md +++ b/docs/earn-money/payments/support_this_app.md @@ -58,7 +58,7 @@ import { usePayments, useProducts } from '@devvit/payments'; import { ProductButton } from '@devvit/payments/helpers/ProductButton'; import { Devvit } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ render: (context) => { const { products } = useProducts(context); @@ -83,6 +83,7 @@ Devvit.addCustomPostType({ ); }) ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ## Example diff --git a/docs/guides/tools/devvit_cli.mdx b/docs/guides/tools/devvit_cli.mdx index 436ebd5..3ff2308 100644 --- a/docs/guides/tools/devvit_cli.mdx +++ b/docs/guides/tools/devvit_cli.mdx @@ -38,7 +38,7 @@ $ npx devvit create icons "src/my-icons.ts" import { Devvit } from '@devvit/public-api'; import Icons from './my-icons.ts'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'my-custom-post', render: (_context) => { @@ -52,6 +52,7 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### devvit help diff --git a/versioned_docs/version-0.11/api/public-api/classes/Devvit.md b/versioned_docs/version-0.11/api/public-api/classes/Devvit.md index 7b8b4b3..74606f0 100644 --- a/versioned_docs/version-0.11/api/public-api/classes/Devvit.md +++ b/versioned_docs/version-0.11/api/public-api/classes/Devvit.md @@ -19,7 +19,7 @@ ## Methods :::warning Deprecation notice -`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. +`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. [View announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ::: @@ -47,7 +47,7 @@ The custom post type to add. ```ts import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Counter', description: 'A simple click counter post.', @@ -63,6 +63,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) --- diff --git a/versioned_docs/version-0.11/app_image_assets.md b/versioned_docs/version-0.11/app_image_assets.md index 3ae832e..c3f3d37 100644 --- a/versioned_docs/version-0.11/app_image_assets.md +++ b/versioned_docs/version-0.11/app_image_assets.md @@ -65,7 +65,7 @@ const render: Devvit.CustomPostComponent = () => { ); }; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My custom post', description: 'Test custom post for showing a custom asset!', @@ -86,6 +86,7 @@ Devvit.addMenuItem({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) 4. Run `devvit upload`. 5. Install or update your app on your subreddit. diff --git a/versioned_docs/version-0.11/blocks/button.mdx b/versioned_docs/version-0.11/blocks/button.mdx index 5f7533f..60553bb 100644 --- a/versioned_docs/version-0.11/blocks/button.mdx +++ b/versioned_docs/version-0.11/blocks/button.mdx @@ -163,7 +163,7 @@ A button that increments a counter ```tsx import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Say Hello', render: (context) => { @@ -180,3 +180,4 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/versioned_docs/version-0.11/blocks/image.mdx b/versioned_docs/version-0.11/blocks/image.mdx index 15da858..8b89a83 100644 --- a/versioned_docs/version-0.11/blocks/image.mdx +++ b/versioned_docs/version-0.11/blocks/image.mdx @@ -183,7 +183,7 @@ A button that increments a counter ```tsx import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Say Hello', render: (context) => { @@ -200,6 +200,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ### Example diff --git a/versioned_docs/version-0.11/capabilities/adding-links.mdx b/versioned_docs/version-0.11/capabilities/adding-links.mdx index c72d6bf..21add81 100644 --- a/versioned_docs/version-0.11/capabilities/adding-links.mdx +++ b/versioned_docs/version-0.11/capabilities/adding-links.mdx @@ -102,7 +102,7 @@ import { Devvit } from '@devvit/public-api'; Devvit.configure({ redditAPI: true }); // Interactive post definition -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Name', render: (context) => { @@ -145,6 +145,7 @@ Devvit.addMenuItem({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ## External URLs diff --git a/versioned_docs/version-0.11/capabilities/cache.md b/versioned_docs/version-0.11/capabilities/cache.md index 80a1980..c25227e 100644 --- a/versioned_docs/version-0.11/capabilities/cache.md +++ b/versioned_docs/version-0.11/capabilities/cache.md @@ -41,7 +41,7 @@ Devvit.configure({ // other capabilities }); -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Name', render: (context) => { @@ -83,3 +83,4 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/versioned_docs/version-0.11/capabilities/forms.md b/versioned_docs/version-0.11/capabilities/forms.md index ee75cac..3743ac3 100644 --- a/versioned_docs/version-0.11/capabilities/forms.md +++ b/versioned_docs/version-0.11/capabilities/forms.md @@ -19,7 +19,7 @@ This example shows an interactive post with a text label and a button that trigg ```tsx import { Devvit, useState, useForm } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'TemplateName', render: (context) => { @@ -58,6 +58,7 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) [Explore example in playground](https://developers.reddit.com/play#pen/N4IgdghgtgpiBcIBiB7ATlABASzJgogB4AOMa2MYAxjJgAooDOALiADQiNpUIjZTF0zTMEwARGADdJ2YQF9MAMzQosAcgACAEykzmAemIBXAEYAbbFQC0EYtjUBuADpgXE6bIB0ELVoDCRiyqDCwAKgCepAAUwC6YmJCw8JhqoTACZhDMMABy0DBqbHGYaJQ6aMlRVChg2YTMAJSYALwAfCLF8dVgLJgA2okwbJiMMMx5sAC6LZjddcyegTAAysxZMFFqRmAA1mAoAO5gag3OrnjxszW9UOGoGDNzMPWLo-dQUZ2XsReXl4oUMxaRjJPpfP7xH4Q6GYZiRGDJNQschgADmhXBMMGiMGGN+MPimRMMDMiImBSK+OhckpBMmtIhNMxUUkEDMRhgjCabQ6VMuo3G+RZbI5jE8g1OmLkX0l5z+pWYRjQeE+fIAPJIWBAqDtMKjbM0nCBYFpsEYoEbMAALGDYVFW5iGkAARgADK6AKSWtl2sCwWpOqDYXxmWg0WpkI2tTHxNXzVoACRJZhQIkGcgAhGr9PGY5g1SYjMxmDU8-EanRSoxGM1gFFue0oQTLk8XkZsJ5GFbDu8ord3rLm5g5NK+fFo2PLssxgl8nns4XizUJ9Ds5q1jqV5dB8PKXJZS5noI0MIdIoIEYzMJ3HoHOwQJIyIxsDUEM65EA). @@ -523,7 +524,7 @@ Devvit.configure({ redditAPI: true, }); -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Multi-step Form', render: (context) => { @@ -627,6 +628,7 @@ Devvit.addMenuItem({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) [Explore example in a playground](https://developers.reddit.com/play#pen/N4IgdghgtgpiBcICyBXANgFwJYFoDOGMADgAQBmA9gE5QlZgkwAeRMVWMYAxjCURQRAAaEHipcEILFH5UMJYCQAiMAG6qs8gL7kqFWgHIAAgBM1GjAHoiKAEZosXHBCJYDAbgA6YbyvWaAOi4KMDIsAHMUKhgACmBvEhJokxNNAEEABQBJeBIMKhQYIW8tAEovHzA-CwCIFIBhFAJ9DIEMABUAT1Y4hJJIWFyDVExcAmISADFqKANihiTOMypcmOCwQiYMUpIAXgA+BT7E9YISAG0BopI8GAwAOWgYAF09knXNjACmmABlDAghBiBgM5WO7xCZ3OlAoJiENzu01hr12EI2zC+P3+gNiILBCxOkPk5xM7DAAGt4bcMEoyeSUWjPt9btigXiKuDTvJKDQAMxvD4Y5kwaY0GLgxLxAmJGVhGBoEx4XLnCUyyWqtWJDDdGBDAhk8JzDWaq5DUn0clG6WamVoCC2eW5TwgADqAAtAQY8CROhQouQIKpqJpeOaKQB+Z3zG026IARxQWGSuXyhWjMcSWnTNue2ZlWdVMVUEDQhTwOwOR2tMuptItRZLZYCYfJ+JtWnB+M5RPIMwATAKQkyfqKoOLq1KM3KFUqLsb1dWbdrWHr8vRDXmM6aSAYYSYrRm1XaHWgna6PRgvT6-VQA0H2IRe7DI8J5zL44nk3kCkU3wXFyQuaqv+NoNqWMDlnshyTjG1JIiYYFNnubYxoKWzfFgAR4G6FAAO6jjEPJQLyKFqh20pdtKXK9jQACMg7ouhI4zOONowTa06Ksqb7sYey66ju+rrgeh6JNuBhXCJonHo6JDOu6nrer6-pXC+m4xh+SYwCYKY-upZH6YB6kgZqiEQRW0HGtSjywGZeABFcpGamhmKYdheEEURfZOZmnYctKZAoNw2AhIsBAQHIMQ7LxiTWU8wKghUNpwRQsIJT5CI0nS6VJc5Q5ComWE4fhLFEbRTnkd2YBnFgeBpNVuFsNpbxXCQABkbVPiY7WdS2-lqtEGBRAwrGagAPKo4VcOSJBujAERuhguzOrRAAMq0AKTOiQJYRGAsAbMtIA8Oit5QFgKRoDA23hC4R1gCE10gPsxrALV9V4I1yQ9SQo0ZmNL0AWqY2fPsNkCcAVxaGNlig2+iQgxi+yTIGwaPnuuTAHu0Ow0j8MkIjWzI6jD6hnSmMtjjcNAzKY14EQEA8LeeBYAAXjAR12lQ4RPSQliA6JCO2CgGAYKFIQZNEeB4LswBSwCchaPsABKEEKxgMPC6LIQC4eMO6zapTkRmwAAITvQ1TXdR1BNa2LDAS1LMty2rEUYEr7QQOSvAJmrWAhJAWmayL9v7Mb42WJNALTQbJAof+ZT+cwsjyGYZAQOg8jVJoFTCCAqhsCzIQILRWhAA). diff --git a/versioned_docs/version-0.11/capabilities/secrets-storage.md b/versioned_docs/version-0.11/capabilities/secrets-storage.md index 0ee25c7..c35f156 100644 --- a/versioned_docs/version-0.11/capabilities/secrets-storage.md +++ b/versioned_docs/version-0.11/capabilities/secrets-storage.md @@ -103,7 +103,7 @@ async function fetchResponse(context: Devvit.Context): Promise { } } -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Devvit - Ask GPT', render: (context) => { @@ -129,6 +129,7 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/versioned_docs/version-0.11/capabilities/server-side-functions.md b/versioned_docs/version-0.11/capabilities/server-side-functions.md index cc61281..fbc3abe 100644 --- a/versioned_docs/version-0.11/capabilities/server-side-functions.md +++ b/versioned_docs/version-0.11/capabilities/server-side-functions.md @@ -31,7 +31,7 @@ Devvit.configure({ http: true, }); -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Random Number Generator', render: () => { @@ -57,6 +57,7 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) Server-side Code (server/randomNumber.ts): diff --git a/versioned_docs/version-0.11/capabilities/userActions.md b/versioned_docs/version-0.11/capabilities/userActions.md index a0d98a9..ff41ece 100644 --- a/versioned_docs/version-0.11/capabilities/userActions.md +++ b/versioned_docs/version-0.11/capabilities/userActions.md @@ -96,7 +96,7 @@ Devvit.addMenuItem({ }, }); -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'Favorite color post', render: (context) => { @@ -159,3 +159,4 @@ Devvit.addCustomPostType({ export default Devvit; ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) diff --git a/versioned_docs/version-0.11/custom_post_form.md b/versioned_docs/version-0.11/custom_post_form.md index 39b17c4..eeb00a4 100644 --- a/versioned_docs/version-0.11/custom_post_form.md +++ b/versioned_docs/version-0.11/custom_post_form.md @@ -58,7 +58,7 @@ Copy and paste the following code snippets into your `main.tsx` file below the i ```jsx -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My Custom Post Type', render: () => { @@ -72,13 +72,14 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) 7. Use the Reddit API to say hello to the user. ```jsx import { Devvit, useState } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My Custom Post Type', render: (context) => { @@ -97,13 +98,14 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) 8. Create a form to collect user input. ```tsx import { Devvit, useState, useForm } from '@devvit/public-api'; -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My Custom Post Type', render: (context) => { @@ -159,6 +161,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) 9. Add a subreddit menu item to submit your custom post. diff --git a/versioned_docs/version-0.11/custom_post_usage.md b/versioned_docs/version-0.11/custom_post_usage.md index b54514e..0e6e5bb 100644 --- a/versioned_docs/version-0.11/custom_post_usage.md +++ b/versioned_docs/version-0.11/custom_post_usage.md @@ -11,7 +11,7 @@ Want to know more about custom posts? You’re in the right place. This page wil Custom posts need a definition for the post type and the post loading state: :::warning Deprecation notice -`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. +`addCustomPostType` is deprecated and will be unsupported. It will not work after June 30. [View announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) ::: - The `addCustomPostType()` method defines the custom post type. @@ -34,7 +34,7 @@ The UI is wrapped in ``. If you don’t include them, `` will be **Example** ```tsx -// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. +// addCustomPostType() is deprecated and will be unsupported. It will not work after June 30. View the announcement below this example. Devvit.addCustomPostType({ name: 'My Custom Post Type', description: 'A big hello text.', @@ -52,6 +52,7 @@ Devvit.addCustomPostType({ }, }); ``` +[View `addCustomPostType` deprecation announcement.](https://www.reddit.com/r/Devvit/comments/1r3xcm2/devvit_web_and_the_future_of_devvit/) :::note Check out our extensive [Icon Library](blocks/icon)! These can be used in `