# Sending parameters from Raised Event not working

**URL:** <https://forums.fusetools.com/t/sending-parameters-from-raised-event-not-working/6004>\
**Category:** Bug Reports\
**Created:** [December 8, 2017, 2:38pm UTC](https://forums.fusetools.com/t/sending-parameters-from-raised-event-not-working/6004 "2017-12-08T14:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Casanova](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/alex_casanova/32/598_2.png) [@Alex\_Casanova](https://forums.fusetools.com/u/Alex_Casanova)\
**Post date:** [December 8, 2017, 2:38pm UTC](https://forums.fusetools.com/t/sending-parameters-from-raised-event-not-working/6004/1 "2017-12-08T14:38:43Z")

</div>

Something weird happening when i try to navigate to another page from a raised event in a component. I want to send data along with the route but the next page’s `this.Parameter` is null. It navigates to the page the but there’s no data. I’ve navigated to different pages with data in the same app. Is there something specific about sending data because of a raised event?

Here’s a repo to see the issue

> **[beatscode/fuse\_component\_routing](https://github.com/beatscode/fuse_component_routing)**
>
> fuse\_component\_routing - Testing routing parameters from components

Fuse version 1.4.0 (build 14778)  
Copyright © 2017 Fusetools

10.13.1  
Mac os High Sierra

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [December 11, 2017, 10:55am UTC](https://forums.fusetools.com/t/sending-parameters-from-raised-event-not-working/6004/2 "2017-12-11T10:55:20Z")

</div>

Hi Alex,

checked the code, and I don’t think this has to do with `UserEvent`s in any way. It all has to do with how you’re treating `this.Parameter` in `appointment.js`.

In particular, you’re expecting it to be always there, always with the latest data. The procedural `console.log()` statements you have there suggest exactly that:

```auto
var sPhysician = this.Parameter;
console.log(JSON.stringify(this.Parameter))

function init() {
    console.log("Loading Appointment")
    //This should be doctor object
    console.log(JSON.stringify(this.Parameter))
}

```

This is not how it works. `this.Parameter` is reactive, populated asynchronously, which means that the value of it arrives later, some time in the future. You should read about [State Observables and derived Observables](https://www.fusetools.com/docs/fusejs/observable-api#state-observables-and-derived-observables) to understand the difference.

The solution then is to use reactive operators (such as `.map()`) to subscribe to `this.Parameter`, as explained [in the Tutorial](https://www.fusetools.com/docs/tutorial/navigation-and-routing#sending-data-between-our-pages).

---

<div class="post-metadata">

**Author:** ![Alex\_Casanova](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/alex_casanova/32/598_2.png) [@Alex\_Casanova](https://forums.fusetools.com/u/Alex_Casanova)\
**Post date:** [December 11, 2017, 1:18pm UTC](https://forums.fusetools.com/t/sending-parameters-from-raised-event-not-working/6004/3 "2017-12-11T13:18:46Z")

</div>

Thanks Uldis
