When Thoros of Myr brings Beric Dondarrion back to life again, Beric has lost "something" but is still essentially Beric Dondarrion: he has not forgotten who he was and he remains the leader of the Brotherhood.
In the books, there is an example of a character who is dead for three days before being resurrected:
Catelyn Stark is resurrected by Beric Dondarion three days after the Red Wedding and remains partly mutilated. Another consequence of this late resurrection is that she has lost much of her older personality.
Does this also apply to the wights in the Night King's army? Many of the wights we see in Game of Thrones have been dead for quite some time. However, after the massacre at Hardhome, the Night King resurrects many wildlings who died less than an hour earlier (if we ignore time compression in the tv series). Is there any evidence from the tv series or the books that they retain some of their personality and therefore also their fighting skills? What we've seen so far seems to suggest that they just wildly slash at their victims, possibly relying more on numbers than skills.