You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/capabilities/blocks/blocks_payments.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
You can use the payments template to build your app or add payment functionality to an existing app.
4
4
5
5
:::note
6
-
[Devvit Web](../../capabilities/devvit-web/devvit_web_overview.mdx) is the recommended approach for all interactive experiences. We recommend [migrating your app](../../earn-money/payments/payments_migrate.md) to Devvit Web payments.
6
+
[Devvit Web](../../capabilities/devvit-web/devvit_web_overview.mdx) is the recommended approach for all interactive experiences. We recommend [migrating your app](../../earn-money/payments/payments_migrate.mdx) to Devvit Web payments.
7
7
:::
8
8
9
9
To start with a template, select the payments template when you create a new project or run:
@@ -161,28 +161,28 @@ Errors thrown within the payment handler automatically reject the order. To prov
161
161
This example shows how to issue an "extra life" to a user when they purchase the "extra_life" product.
Copy file name to clipboardExpand all lines: docs/capabilities/blocks/optimize_performance.md
+40-30Lines changed: 40 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Use `context.cache` to reduce the amount of requests to optimize performance and
39
39
40
40
### Leverage scheduled jobs to fetch or update data
41
41
42
-
Use [scheduler](../server/scheduler.md) to make large data requests in the background and store it in [Redis](../server/redis.mdx) for later use. You can also [fetch data for multiple users](#how-to-cache-data).
42
+
Use [scheduler](../server/scheduler.mdx) to make large data requests in the background and store it in [Redis](../server/redis.mdx) for later use. You can also [fetch data for multiple users](#how-to-cache-data).
43
43
44
44
### Batch API calls to make parallel requests
45
45
@@ -62,7 +62,7 @@ In Devvit, the first render happens on the server side. Parallel fetch requests
62
62
In the render function of this interactive post, the app fetches data about the post, the user, the weather, and the leaderboard stats.
@@ -103,7 +103,7 @@ The main difference between these two methods is that `useState` blocks render u
103
103
This is the best choice for performance because it allows you to render parts of your application while others may still be loading. Here’s how the same example looks for useAsync:
@@ -206,35 +208,35 @@ Do not cache sensitive information. Cache helper randomly selects one user to ma
206
208
207
209
### Solution: schedule a job
208
210
209
-
Alternatively, you can use [scheduler](../server/scheduler.md) to make the request in background, save the response to [Redis](../server/redis.mdx), and avoid unnecessary requests to the external resource.
211
+
Alternatively, you can use [scheduler](../server/scheduler.mdx) to make the request in background, save the response to [Redis](../server/redis.mdx), and avoid unnecessary requests to the external resource.
210
212
211
213
**Example: fetch weather data every 2 hours with a scheduled job**
0 commit comments