所有分类
  • 所有分类
  • 场景/Scenes
  • 人物/Looks
  • 服装/Clothing

// 3. Re-render the viewerframe render();

const refreshAndGoTop = () => // 1. Refetch data refetchData(); // 2. Force mode to "refresh" setMode('refreshing'); // 3. After DOM update, scroll frame to top setTimeout(() => if (frameRef.current) frameRef.current.scrollTop = 0; // The "top" command

Viewerframe Mode Refresh Top =link= -

// 3. Re-render the viewerframe render();

const refreshAndGoTop = () => // 1. Refetch data refetchData(); // 2. Force mode to "refresh" setMode('refreshing'); // 3. After DOM update, scroll frame to top setTimeout(() => if (frameRef.current) frameRef.current.scrollTop = 0; // The "top" command viewerframe mode refresh top