@douglasneuroinformatics/libui 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@douglasneuroinformatics/libui",
3
3
  "type": "module",
4
- "version": "3.6.0",
4
+ "version": "3.6.1",
5
5
  "packageManager": "pnpm@9.12.1",
6
6
  "description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
7
7
  "author": "Joshua Unrau",
@@ -1,5 +1,4 @@
1
- import { useEffect, useState } from 'react';
2
- import * as React from 'react';
1
+ import { useEffect, useLayoutEffect, useState } from 'react';
3
2
 
4
3
  import type {
5
4
  FormContent,
@@ -122,7 +121,7 @@ const Form = <TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<TS
122
121
  revalidate();
123
122
  }, [resolvedLanguage]);
124
123
 
125
- useEffect(() => {
124
+ useLayoutEffect(() => {
126
125
  if (initialValues) {
127
126
  setValues(getInitialValues(initialValues));
128
127
  }