nimahkh / soft_bun

A lightweight and framework-agnostic reactivity system implemented in TypeScript
Other
10 stars 1 forks source link

Enhancement: Enable Resolution of Nested Object Properties #26

Closed Mostafa-Mohammadi closed 1 year ago

Mostafa-Mohammadi commented 1 year ago

Hello dear Nima,

This pull request addresses the issues described in #25

I've made some crucial bug fixes that enhance the functionality of the pairValues method and introduce a new method called getNestedPropertyValue. These changes allow for the seamless handling of nested property paths within reactive expressions. Below, I've outlined the modifications and their benefits:

  1. Modified Regular Expression in pairValues Method
  2. Added getNestedPropertyValue Method
  3. Updated pairValues Method to Utilize getNestedPropertyValue

These changes collectively ensure that the codebase now offers robust support for accessing nested properties within reactive expressions.

Thank you for considering this pull request. I eagerly await your feedback and am prepared to address any queries or concerns you may have.