Skip to content

Commit

Permalink
use generated service instead of service wrapper in Signals IT
Browse files Browse the repository at this point in the history
  • Loading branch information
taefi committed Aug 2, 2024
1 parent 1ad2cfa commit 54efbc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as NumberSignalServiceWrapper from '../helper/NumberSignalServiceWrapper.js';
import { Button } from '@vaadin/react-components';
import { useSignal } from '@vaadin/hilla-react-signals';
import { NumberSignalProviderService } from 'Frontend/generated/endpoints.js';

const counter = NumberSignalServiceWrapper.counter();
const sharedValue = NumberSignalServiceWrapper.sharedValue();
const counter = NumberSignalProviderService.counter();
const sharedValue = NumberSignalProviderService.sharedValue();

export default function SharedNumberSignal() {
const sharedValueFromServer = useSignal<number | undefined>(0.0);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@org.springframework.lang.NonNullApi

package com.vaadin.hilla.test.signals.service;

0 comments on commit 54efbc5

Please sign in to comment.