Skip to content

Instantly share code, notes, and snippets.

@Vi-dot
Vi-dot / README
Last active September 15, 2020 15:02
react-hook-form useFieldArray remove bug
With useFieldArray hook, remove function works fine in Debug mode, but not in Release mode.
In Release mode, remove(one_index) function removes all items appended, but keep items from defaultValues.
@Vi-dot
Vi-dot / http.cpp
Created February 26, 2019 13:45
Http async request with QThread
#include "http.h"
#include "httpexec.h"
Http::Http(QObject *parent) : QObject(parent)
{
m_thread = NULL;
m_reply = NULL;
}
Http::~Http() {