fastify / fastify/fastify-vite

Allowing passing additional context to the html function in spa mode

Open
#140 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.1k
Forks
103
Avg merge
6h 54m
Merged PRs (30d)
7

Description

### Prerequisites

- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested

### 🚀 Feature Proposal

Currently SPA mode doesn't allows to pass additional context to the render function.

### Motivation

I have a case that I wan't to render some stuff on the **html** not related to the React app.

For example, render app version inside a **meta** tag.

### Example

```js
reply.html({
version: env.BUILD_VERSION
});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.