[PR #18107] chore: better modal manager types #15566

Closed
opened 2026-02-05 15:50:54 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/18107

State: closed
Merged: Yes


The second argument (props) is now optional if the passed component (let's call it Foo) only exposes onClose. In this case, the following three calls are all valid:

  • modalManager.open(Foo);
  • modalManager.open(Foo, undefined);
  • modalManager.open(Foo, {});

A non-empty object such as in modalManager.open(Foo, { foo: '42' }) is now invalid.

**Original Pull Request:** https://github.com/immich-app/immich/pull/18107 **State:** closed **Merged:** Yes --- The second argument (`props`) is now optional if the passed component (let's call it `Foo`) only exposes `onClose`. In this case, the following three calls are all valid: - `modalManager.open(Foo)`; - `modalManager.open(Foo, undefined);` - `modalManager.open(Foo, {});` A non-empty object such as in `modalManager.open(Foo, { foo: '42' })` is now invalid.
OVERLORD added the pull-request label 2026-02-05 15:50:54 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#15566