Famous / Famous/framework

Injecting nested state value to a behavior

Open
#65 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
394
Forks
62
PR merge metrics
No merged PRs in 30d

Description

How do you inject nested state value to a behavior? (ex: `$states.get([‘a’, ‘b’]` from `{states: { a: { b: 1 } } }`)

@Imti on Slack:

> We don't have a good way to do that yet. You'll have to inject `a` and reach into `b` to use it from within a behavior

@matthewtoast on Slack:

> i would advise sticking to the flattened states for now

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.