[Question] Is it possible to replace fastCloneDeep JSON.stringify(JSON.parse with structuredClone() ?
@VikkiAlenn já está trabalhando nisso.
Desde 26/11/2024.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Hi
REASON to ask:
I am implementing custom angular file-select component and want File object to be accessible as formfield value on formSubmit. But when I do valueChanges.emit({file: someFileObjWithBlob}) inside custom element then on submit event I get empty object (btw customEvent transfer File obj correctly)
After small ivestigation I suspect that maybe it is because in submit event handler we sometimes do copy with fastCloneDeep Util function which is just JSON.parse(JSON.stringify(obj))
So maybe it make sense to replace it with structuredClone?
structuredClone does File structure copy correctly.
What do you think?
- Linguagem predominante
- TypeScript
- Estrelas
- 706
- Forks
- 493
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de formio/angular
-
question
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
-
[BUG] <form-builder> move icon is missingTalvez livre de novo @PrathameshHegde assumiu há 99 dias e não há nenhum pull request aberto. Abertabug
-
[Question] Version 10.0Abertaquestion
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptionsTalvez livre de novo @Victoriya25 assumiu há 363 dias e não há nenhum pull request aberto. Abertabug
-
question
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Todas as issues de formio/angular
Issues semelhantes
-
bot:ai-assisted component:platform-js status:untriaged
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 74/100
midnightntwrk/platform-js#38 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ranxianglei/billion-context#7068 ·
Mantenedores costumam responder em até 1 dia
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
ilan-pinto/roaring-lions#1552 ·
Mantenedores costumam responder em até 1 dia