这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@frankcalise
Copy link
Contributor

@frankcalise frankcalise commented Oct 31, 2022

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant

Describe your PR

import { Instance, SnapshotIn, SnapshotOut, types } from "mobx-state-tree"
import { withSetPropAction } from "./helpers/withSetPropAction"

/**
 * Model description here for TypeScript hints.
 */
export const Test4Model = types
  .model("Test4")
  .props({})
  .actions(withSetPropAction)
  .views((self) => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars
  .actions((self) => ({})) // eslint-disable-line @typescript-eslint/no-unused-vars

export interface Test4 extends Instance<typeof Test4Model> {}
export interface Test4SnapshotOut extends SnapshotOut<typeof Test4Model> {}
export interface Test4SnapshotIn extends SnapshotIn<typeof Test4Model> {}
export const createTest4DefaultModel = () => types.optional(Test4Model, {})

@frankcalise frankcalise self-assigned this Oct 31, 2022
@frankcalise frankcalise marked this pull request as ready for review October 31, 2022 13:29
@frankcalise frankcalise merged commit 394438d into master Nov 4, 2022
@frankcalise frankcalise deleted the fix-2218/set-prop-action-model-gen branch November 4, 2022 21:56
infinitered-circleci pushed a commit that referenced this pull request Nov 4, 2022
## [8.2.10](v8.2.9...v8.2.10) (2022-11-04)

### Bug Fixes

* **generators:** added withSetPropAction to model gen ([#2279](#2279)) ([394438d](394438d))
@infinitered-circleci
Copy link
Collaborator

🎉 This PR is included in version 8.2.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add withSetPropAction helper to model generataor

4 participants