Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

I'm working on an Innovation Index Toolkit using Preact with signals for state management. The issue I'm facing is that I cannot navigate to the next question because the radio button selections aren'...
SinaMathew's user avatar
2 votes
2 answers
469 views

I'm trying to use Signals (@preact/signals-react) to reduce re-rendering with large data objects. In my case, I'm getting object from a network request, and tends to change frequently with live ...
Uri Kutner's user avatar
0 votes
1 answer
128 views

React 18 enables concurrent mode by default -- at least in the Creact React App generated starter index.js. However, tired with the complexity that comes with a hooks based application design, and the ...
Harry's user avatar
  • 4,031
3 votes
1 answer
91 views

There is a very helpful guide Signals vs. Observables at builder.io contrasting the different semantics of signals and observables. Whilst it draws the helpful distinction that signals are "pull&...
Bosmon's user avatar
  • 51
1 vote
0 answers
128 views

Can anyone tell me if VueJS has fine-grained reactivity, similar to signals that use a sub-push mechanism to update directly on the actual DOM? If so, does that make the virtual DOM redundant? I want ...
nhơn's user avatar
  • 11
3 votes
1 answer
3k views

In one of my computed signal I need to read data on a file, which is a runtime function. As I need the computed signal to run on client I need to figure out how to input variables. I try this: import {...
Ooker's user avatar
  • 3,404
0 votes
1 answer
222 views

I am trying out signals from @preact/signals in a ReactTS project. According to the documentation, if I would like to update a signal value, I can just do mySignal.value = "newSignal". ...
Amrovic's user avatar
  • 449
0 votes
1 answer
424 views

I'm using Fresh/Preact. In an HTML select element, I want 2 things: The value of the selected option is displayed next by The default value of a signal is the default value of an option element ...
Ooker's user avatar
  • 3,404
0 votes
1 answer
198 views

I am trying to control a MUI dialog with a signal, but even with the <p> the value from the signal is not rendered. However, the value of the signal is changed in the console. So if I click the ...
Cripacx's user avatar
2 votes
1 answer
1k views

I am using @preact/signals-react version 2.0.0, implementing a simple counter app: import { signal } from "@preact/signals-react"; const counter = signal(0); function App() { return ( ...
samhodev's user avatar
  • 348
0 votes
0 answers
193 views

I have a activeWindows signal defined outside the JSX: export const activeWindows = signal([ { index: 1, title: 'App1', isMinimized: false, dimensions: { ... }, { ...
Chinz's user avatar
  • 1,005
0 votes
1 answer
1k views

I have this code. effect(() => { productsShoes.value = shoes.value }) I want to, everytime only, shoes.value is changed, trigger this effect. The way that is, its re-rendering, either both ...
Vinicius Lima's user avatar
0 votes
1 answer
508 views

I have an array signals that are being rendered in UI using map, but everytime I put a new value in it, it doesnt rerender and show in UI the new value. import React from "react"; import { ...
Vinicius Lima's user avatar
0 votes
0 answers
248 views

in the docs of signals react integration https://github.com/preactjs/signals/blob/main/packages/react/README.md#react-integration it only mentioned integration with functional components and I tried ...
Littlee's user avatar
  • 4,365
0 votes
1 answer
413 views

Hello i tried to use this preact global app state based on this documentation but keep getting error and this my first time using useContext i might be wrong in my config so i appriciate if anybody ...
muntun's user avatar
  • 93
2 votes
0 answers
228 views

In the React component below, I want to fetch data from the server and then present it in component html, the data is arriving and i can see in the console.lo, but the component wont be rendering it. ...
SexyMF's user avatar
  • 11.3k
4 votes
2 answers
4k views

This question is not an issue, it is for educational purpose. I was trying out effect and useSignalEffect from @preact/signals-react in react application. Problem is i see effect and useSignalEffect ...
Barnit Basnet's user avatar
-3 votes
1 answer
1k views

"use client"; import React, { useEffect, useState } from "react"; import { AnimatePresence, motion } from "framer-motion"; import { Route, routeCollection } from "../...
AYUSH Mondal's user avatar
3 votes
2 answers
2k views

I have a basic application in Vite. Why can't I type in the input field? import React from "react"; import { signal, computed } from "@preact/signals-react"; const name = signal&...
Calin Ianchis's user avatar
2 votes
0 answers
1k views

Ideally I'd like to have a state management setup which allows me to: have an arbitrarily nested state. For example, this could be a valid entry in the state users[0].vehicle.engine.throttle have an ...
lhk's user avatar
  • 30.7k
0 votes
1 answer
596 views

This is my first to use preact/signals. I am not sure if is it a good practice for using preact/signals. Would you tell me how can I use the signals for building the drop-down box? Here is my code: ...
The KNVB's user avatar
  • 3,852