Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Initial rendering remove all nodes from server side rendering and then render them again #911

@hronro

Description

@hronro

Describe the bug
When load the page in the first time or click the "refresh" button in browser, the client side js is going to remove all html nodes rendered in server side, and then render them again.

To Reproduce

  1. Use sapper's official example (npx degit "sveltejs/sapper-template#rollup" my-app)
  2. Run the example
  3. Open localhost:3000
  4. Add a breakpoint of body element in Chrome dev tools
  5. Refresh the page
    2019-09-24 14-17-52 2019-09-24 14_27_47

Expected behavior
Sapper shouldn't remove those html nodes in first time rendering.

Information about your Sapper Installation:

  • Your browser and the version: Chrome 79

  • Your operating system: macOS 10.15

  • Your hosting environment: Local

  • Sapper version: 0.27.9

  • Svelte version: 3.12.1

  • If it is an exported (npm run export) or dynamic application: dynamic

  • Whether your application uses Webpack or Rollup: Rollup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions