Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

use _.merge instead of _.assign for deep objects #38

Merged
merged 4 commits into from
Jan 3, 2020

Conversation

samuelbirch
Copy link
Contributor

No description provided.

@mihkeleidast
Copy link
Member

can you give some context for these changes? e.g. what issues are you running into that these changes will resolve?

@samuelbirch
Copy link
Contributor Author

samuelbirch commented Jan 2, 2020

i'm rendering a component and using with to override the default context specified in the config file. the problem i was encounting was that because the context has nested objects i couldn't override a single nested attribute:

context: { module: { text: "" } }

this change allows that ability.

hope that makes sense.

src/tags/render.js Outdated Show resolved Hide resolved
src/tags/render.js Show resolved Hide resolved
samuelbirch and others added 2 commits January 3, 2020 09:36
Co-Authored-By: Mihkel Eidast <mihkeleidast@gmail.com>
@mihkeleidast mihkeleidast merged commit 5bc5ed1 into frctl:master Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants