---
number: 3963
title: Neo Override update
author: Dinkh
state: MERGED
createdAt: '2023-01-31T13:27:40Z'
updatedAt: '2023-02-02T10:33:25Z'
closedAt: '2023-02-01T10:36:15Z'
mergedAt: '2023-02-01T10:36:15Z'
head: Neo-override-update
base: dev
url: 'https://github.com/neomjs/neo/pull/3963'
---
@featureRequest: fix #3964
Allows now underscore items, which add support for afterSet and beforeSet.

@example

    Neo.overrides = {
        Neo: {
            component: {
                Base: {
                    foo_: 1,

                    afterSetFoo: function(newValue, oldValue) {
                        let style = this.style;
                        style.color = 'green';
                        this.style = style;
                    }
                }
            }
        }
    };

    export default Neo.overrides;

Please make sure to read the Contributing Guidelines:

https://github.com/neomjs/neo/blob/dev/CONTRIBUTING.md

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update
- [x] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [x] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [x] It's submitted to the `dev` branch, _not_ the `master` branch
- [x] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**
