Skip to content

add suppressHydrationWarning to all components affected by observers #4637

@oddvernes

Description

@oddvernes

Inbput, Label etc (Checkbox, Select and Button-Toggle has been reported)

We could perhaps also/instead try and make the useId function more deterministic

let id = 0;
export function useId(el?: Element | null) {
  if (el && !el.id) el.id = `ds-${++id}`;
  return el?.id || '';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    react@digdir/designsystemet-react

    Type

    No type

    Projects

    Status

    📥 Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions