Skip to content

How do I flag some properties in initial state for useImmerReducer as private or with any other modifier#1146

Description

@yasinitskyi

馃檵鈥嶁檪 Question

How do I flag with modifier some of my properties in initial state for useImmerReducer without getting error. If I delete flag everything works, but I don't want to see some of properties appear in autocomplete while trying to access state from useImmerReducer:

Here is my model for useImmerReducer initial state:
image

Here is my reducer:
image

Here is error I am getting:
image

Environment

Vite React

  • Immer version:
    "immer": "^10.1.1",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "use-immer": "^0.10.0",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions