Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

304
Visualizações
What is the third parameter in SolidJSs createEffect function for?

just started playing around with SolidJS and taking a look at the
createEffect function.

export function createEffect<T>(
  fn: (v: T) => T,
  value?: T,
  options?: { name?: string }
): void;

I'm wondering what the third parameter is for and if I can access it somehow during the execution of the function being passed to createEffect. I do understand that the passed function is being called with the returned value of the last execution and that this value can be initialized with the second parameter, but what is the third parameter for?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Many of Solid's functions, such as createEffect, createSignal, createMemo ect, have an optional name property.

It's used for debugging purposes. Packages such as solid-debug utilize these names.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda