dsherret / dsherret/ts-morph

Event for when a node is forgotten

Open
#826 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

It might be useful to have an event for when a node is forgotten. It should be fired after the tree is replaced rather than while the tree is being replaced.

Some options:

* Event subscription per node
* Single subscription on a project and then a single fire with an array with all the forgotten nodes (probably this)

I’d need to look at the code again, but I think this would be easy to do. There shouldn’t be any performance overhead of this feature unless people subscribe.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.