PricingBlog

Help with understanding contexts

  • tomthebigtree-1277562865938731008

    Tom Ireland

    1 year ago

    Hey, toodle community. I'm struggling a bit with understanding contexts for getting component data back up to the parent. I'm trying to send data back from a component to the HomePage. The component sits within a parent component on the HomePage. It was working okay when the child component was on the HomePage itself but as soon as I shifted it into a parent component, the context workflow stopped working. I'm very much likely misunderstanding how to use contexts and/or doing something wrong.

    I put a wee YT video together (<4 mins).

    https://www.youtube.com/watch?v=IfGdaDdkmTE
    1
  • Tod-1277562867876364308

    Tod

    1 year ago

    Great energy @Tom Ireland! Your continuous contribution to the toddle Community just made you advance to Community Level 18!
  • tomthebigtree-1277562904396300298

    Tom Ireland

    1 year ago

    Help with understanding contexts
  • tomthebigtree-1277563991543119903

    Tom Ireland

    1 year ago

    Solved: I have to actually add the component to the page via the editor in test or preview first; otherwise, the component never gets loaded. 🤦‍♂️
  • tomthebigtree-1277565541527060552

    Tom Ireland

    1 year ago

    Proof of resolution. 🤣
    😅2