Skip to content

Commit dc8a649

Browse files
author
aiktb
authored
Update background-service-worker.mdx (PlasmoHQ#82)
1 parent c801fd7 commit dc8a649

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/framework/background-service-worker.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ See [with-background](https://github.com/PlasmoHQ/examples/tree/main/with-backgr
3737

3838
## Persisting state
3939

40+
<Callout emoji="⚠️">
41+
Service workers in Plasmo `dev` mode will always remain `active`.
42+
</Callout>
43+
4044
The worker becomes idle after a few seconds of inactivity, and the browser will kill its process entirely after 5 minutes. This means all state (variables, etc.) is lost unless you use a storage engine.
4145

4246
The simplest way to persist your background service worker's state is to use the [storage API](/framework/storage).

0 commit comments

Comments
 (0)