Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Feb 3, 2025
1 parent c90be6d commit 53f4b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/isomorphic-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ const serialized = toJSON(thisIsAnIsomorphicFunction); // or any of the serializ
thisIsAnIsomorphicFunction === fromJSON(serialized); // true
```

> [!INFO]
> **INFO**
> It can only accept objects, functions and symbols and it doesn't actually
> serialize their values but only the string you used to identify the reference
4 changes: 2 additions & 2 deletions docs/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ $R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()
($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]={foo:"bar"})
```

> [!INFO]
> **INFO**
> Much like other cross-reference methods, you can pass a `refs` and `scopeId` option.
### `createStream`
Expand Down Expand Up @@ -243,7 +243,7 @@ The mentioned serialization methods are ideal for server-to-client communication

## Push-based streaming serialization

> [!INFO]
> **INFO**
> Coming soon.
## Plugins
Expand Down

0 comments on commit 53f4b78

Please sign in to comment.