Skip to content

[BUG] useServerMount does not run #580

@nnelgxorz

Description

@nnelgxorz

Qwik Version

0.0.23

Operating System (or Browser)

Linux

Node Version (if applicable)

v16.3.0

Which component is affected?

Qwik Runtime

Expected Behaviour

The callback that is passed to useServerMount is executed.

Actual Behaviour

It doesn't seem to execute the callback.

Additional Information

Reproduction Steps:

  1. Spin up a new starter with npm init qwik@latest
  2. Use the standard starter (any server, default options)
  3. Add the following code to app.tsx under the state declaration:
    useServerMount$(() => { console.log("Running server mount"); state.name = "Qwik" });
  4. npm run dev. The console log is never printed and name is still set as 'World'

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions