Server mode allows only one client framework per project
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 12/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python, react, vite
- Domain
- build-system, frontend, full-stack
Research direction
This is design work across the compiler, the Vite build and the server renderer, so it is not a first task. Start with how useFF picks a single framework and how the compiler reports the framework of each imported island, then read docs/rendering/islands.md and the tests/perf/ budgets. Done means a .nexy page with a React and a Svelte island hydrates both, a page without islands ships no framework bundle, and the manifest lists each island's framework.
Written by the indexing model from the issue text.
Description
Problem
useFF must configure exactly one frontend framework. A server page can hold an island, but every island of a project must use React, or Vue, or Svelte, or Solid, or Preact. Astro lets one page hydrate a React island and a Svelte island side by side.
This is feasible with the current stack. The compiler already knows the framework of each imported component, and Vite can emit one client entry per framework.
Proposal
- Keep one default framework in
useFFfor pages and simple projects. - Read the framework of an island from its file extension or an explicit directive on the import.
- Generate one client entry and one SSR worker per framework present in the project.
- Load only the frameworks used by the page, so a text page still ships no client bundle.
- Reject two frameworks on the same island and keep the current error for a framework route in server mode.
Acceptance
- A
.nexypage imports a React island and a Svelte island, and both hydrate with their server HTML. - A page with no island ships no framework bundle.
- The generated manifest names the framework of every island.
- Client and server hydration tests run for each adapter.
- The startup and first page budgets of
tests/perf/do not regress. docs/rendering/islands.mdand the framework pages describe the rule.
Out of scope
Mixing frameworks inside a client routed page, and adding a sixth framework.
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 265
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NexyPy/nexy
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:cli difficulty:intermediate enhancement
Difficulty 2/5 Half a day Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area:cli area:docs question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:docs difficulty:beginner good first issue priority:3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days