Open essekia opened 8 years ago
Never mind. As I suspected, it was something silly on my part.
Another query regarding matching view with the rewired store.
So here is my problem, I have a rewired 'flightStore' and a 'flightView' which has 'flightStore' as its dependency. How do I match the current rewired version of the flightStore in the flightView? Should I use rewire the view and use 'set' on it somehow to match the stores (or) the variables used in the view? Is there another simpler way to do this?
var registeredCallback = flightStore.__get__("registeredCallback");
registeredCallback({
actionType: 'choose-flight',
type: 'business-class'
});
ReactDOM.render(
React.createElement(flightView, {
className: parentID,
key: parentID
}),
document.getElementById(tempID)
);
Thanks much!
Hi,
I have a feeling that I am missing something obvious, but shouldn't testStore return true? I get 'false'. And I cannot set or get anything as 'testStore' always seems to be undefined.
other info: