Three.Js How to play the action clips imported from my model as individual clips

Dear reader,

How do I play the action clips imported from my model as individual clips?

I have a glb model that I imported along with 5 of its actions. In the image below, I have an animation controller that lets me play the selected action of my model. “hamthumbacrossmod” is only supposed to bend the thumb but it seems like the model is chaining the previous animations together and the result is as shown below.

I have also found that by reordering the actions in blender I can get the animation to play properly however some animations like “hamthumbacrossmod”, will have to be duplicated if I want to chain it with my future actions and I would like to avoid doing that.

Alternative solution:
I realise I can import the actions as separate animations but I would like to avoid doing this as it is harder to code and makes my project very disorderly.

The following code is my react-three-fiber model as a jsx component:

Auto-generated by:
Command: npx gltfjsx@6.2.16 public/models/man.glb 

import React, { useEffect, useRef } from "react";
import { useGLTF, useAnimations } from "@react-three/drei";
import { useCharacterAnimations } from "../contexts/CharacterAnimations";
import * as THREE from "three";

const Man = (props) => {
  const group = useRef();
  const { nodes, materials, animations } = useGLTF("./models/man.glb");
  const { setAnimations, animationIndex } = useCharacterAnimations();
  const { actions, names } = useAnimations(animations, group);

  useEffect(() => {
  }, [names]);

  useEffect(() => {
    const currentAction = actions[names[animationIndex]];
    currentAction.setLoop(THREE.LoopOnce, 1);
    currentAction.clampWhenFinished = true;

    return () => {
  }, [animationIndex]);

  return (
    <group ref={group} position={[0, -110, 0]} {...props} dispose={null}>
      <group name="Scene">
        <group name="Armature001" rotation={[1.829, 0, 0]}>
          <primitive object={nodes.root} />
export default Man;