Fork me on GitHub
#reagent
<
2017-04-05
>
jiangts06:04:42

we’re using a packaged react component in reagent

jiangts06:04:46

with adapt-react-class

jiangts06:04:59

but this component (react-table) binds a value to its state that we need to access

jiangts06:04:24

in this case we’re loading data from the server for a paging table, and we need to access the component’s state.page

jiangts06:04:28

any idea on how to do this?

jiangts06:04:14

using (r/current-component) gets the wrapping reagent component, not the internal react component that we want

pesterhazy07:04:02

@isaac_cambron it does sound like you're getting something wrong

pesterhazy07:04:47

if the 3rd party component doesn't update, isn't that a bug in that component? I'd assume that has nothing to do with how you call it, regardless of whether you're using reagent

jiangts07:04:55

nevermind, I got it, dumb mistake

pesterhazy07:04:10

you can't (shouldn't?) reach into the state of another component I think

mikeb07:04:16

Hi, just started learning reagent, can anyone recommend a good example of a multi-page example app that updates the url with pushstate? Looking for something very basic, just showing how to organize pages, navigation and how to move from one page to another.

mikeb07:04:40

thanks @pesterhazy working through that now!

isaac_cambron20:04:40

@pesterhazy I think it's a bug in the component, but it's not obvious to me that its authors do

isaac_cambron20:04:17

I'm going to try to fix the component (having trouble getting my wrapper to pull in a local version of the third-party component), but I was wondering if there was a hack that used force-update (not really sure how to call it) or similar