Fork me on GitHub
#fulcro
<
2020-07-28
>
zilti09:07:30

Is this broken in :initLocalState? I cannot do an e.g. app/current-state or df/load! there because that gives me an error about not being able to deref nil

zilti09:07:19

On top of that it puts the entire page in a nasty infinite loop that locks up half the browser

tony.kay19:07:54

@zilti initLocalState runs as part of the constructor…Fulcro is not initialized there, as it is really a React-ism for setting up component-local state

tony.kay19:07:26

you should never use it for side-effecting or looking at the app itself

tony.kay19:07:36

(unless you use the app externally…not from this)

zilti19:07:32

Hmm I see. Yeah for now I am setting local state in the component body (after checking if the state is empty). My use case is a modal dialog with input fields and auto completion. Using a floating root seems way too cumbersome, so this seems to be the only alternative? Or is there a "pattern" for this?

lgessler19:07:29

why do you need a floating root for this? i've written modals where it just exists normally on the main data graph

zilti22:07:37

But how? I can't give it pre-customized props and give it the ability to edit the props by itself using m/set-value!

lgessler01:07:37

so i think this isn't the optimal solution but i got something similar working https://github.com/lgessler/glam/blob/master/src/main/glam/client/ui/root.cljs#L60L62

lgessler01:07:02

(it's technically a popout sidebar instead of a modal but they're essentially the same for this discussion)

lgessler01:07:33

i think it should be possible instead to use a plain old function instead of a defsc here for the modal/drawer but i haven't gotten back to refactoring this yet

tony.kay21:07:38

Someone want to remind us where the Fulcro study group is meeting tomorrow morning? I don’t remember who was organizing… @fjolne.yngling @lgessler @souenzzo?

lgessler21:07:47

i don't think we had a call set up or anything, not sure how past meetings were conducted

lgessler21:07:58

if we need a zoom room i can get us one!

tony.kay22:07:05

I’ll let you all figure out the details. Just let me know.

markaddleman22:07:59

if it's convenient, could you record these meetings?

lgessler22:07:07

i'd be happy to if it's something the other participants are interested in

👍 3
lgessler01:07:28

just in case we don't have any other plan: here's a zoom link https://georgetown.zoom.us/j/92886048670

lgessler01:07:35

it does allow us the option of creating a recording for free (thanks enterprise license!) if we want that

grischoun11:07:22

The organizer is @folcon.

folcon11:07:49

Sorry, I normally just stick up a hangout link at the time we agree to :)... Happy to use the zoom call and record it as well as long as people are ok with that :)...

folcon13:07:50

We'll be picking up in a little under 2 hours 😃... @lgessler, do we just use that room-id? I'll send out a reminder at the 30 min mark 😃...

Richard14:07:12

I'd like to join today.

tony.kay14:07:31

we using the zoom link?

tony.kay14:07:35

I’m ok with recording

tony.kay14:07:11

are we running an hour early? I thought it was 4GMT

lgessler14:07:18

OK, I turned recording on

lgessler14:07:26

yeah I also thought 4pm GMT was an hour from now

folcon15:07:00

You can also just join with the id if you’ve already got zoom 92886048670

lgessler15:07:55

to anyone interested: the fulcro study group is meeting now, and @tony.kay is here with us today! https://georgetown.zoom.us/j/92886048670

😢 3
dvingo15:07:15

thanks y'all - i had a scheduling conflict come up so can't make it - looking forward to the recording if there is one!

lgessler16:07:26

we're still going if anyone wants to join for a bit

JAtkins17:07:01

BTW what time do ya'll usually meet? If it's something I can make I'd like to sit in on the weekly meeting

folcon17:07:17

Thanks again to everyone =)… And a special thanks to Tony for giving us so much of his time =)…

👍 6
tony.kay17:07:25

This should have the live template in it that you saw. Not sure what else it has, so probably just import only live templates.

tony.kay17:07:08

You’re welcome. Good to hear some voices and see some faces.

alex-eberts17:07:11

And thanks to @lgessler for providing the zoom chat

folcon17:07:47

Normally it’s around 2 hours earlier… (so between 1 to 2 BST) We aim to do weekly, but now and again we’ll skip a week. @U5P29DSUS.

folcon17:07:50

Happy to ping anyone who wants a reminder for next week =)…

JAtkins17:07:52

Cool. I can make that next week, not sure about after that cuz I forgot what my school schedule is

3
folcon17:07:24

Definitely thanks @lgessler, please share the recording when you have some time =)…

grischoun17:07:07

Thank you @tony.kay for your time and all your work around Fulcro.

alex-eberts17:07:58

@folcon Would you be willing to do future study groups at 4pm BST in the future? 1pm BST is 4am PST 😬. Thanks!

alex-eberts17:07:58

oops 1pm BST is 5am P*D*T :man-facepalming:

folcon17:07:41

Sorry @U0G3C3USJ, do you want to repeat at this time?

alex-eberts17:07:12

@folcon yes, please. Today’s time would be better for those of us on the west coast of N.America.

folcon17:07:56

It's doable, anyone else willing to join if it's done at the same time as today's call started? (4pm BST)? We'll try it next week and see how we do @U0G3C3USJ 😃...

lgessler18:07:19

4pm BST is also better for me on the east coast of the US

Tyler Nisonoff23:07:21

oooh how do I join the study group? 🙂 great idea!

lgessler02:08:03

@folcon organizes--I think up to this point anyone who's around when the link is posted to the hangout can join. that reminds me, did we settle on a new time?

folcon13:08:01

Yea, me and @U0DP57ZT9 discuss a time and then I post reminders / links for people, seeing as @U0G3C3USJ has asked for later times (4pm BST), we'll try some this Wed and see how we do 😃... That reminds me @lgessler did you manage to put the video somewhere it can be accessed?

lgessler16:08:05

i'm not sure how permanent that link is though (and it's certainly not discoverable like it would be on youtube) so if someone would like to post it somewhere i can give them the file

dvingo18:08:52

thanks for this! looking forward to the next one!

folcon10:08:42

@lgessler So it may disappear after a bit?

lgessler15:08:59

i don't know

folcon14:08:56

Right so we're starting in an hour? 😃... Not sure who's around today? @souenzzo @U0DUNNKT2 @U0522TWDA@lgessler @UCJCPTW8J @U7433RQCT @U0DP57ZT9 @U0568NMQX @U051V5LLP @zilti @U0G3C3USJ

😿 6
folcon15:08:15

https://hangouts.google.com/call/7iosNNenRWnr9tWDcEDYACEI, no luck with people joining it seems... Will try again next week same time, but if we don't get any pickup I'll revert to the earlier time 😃...

JAtkins15:08:38

Sorry, got pulled into a meeting last minute.

lgessler22:08:12

hi, sorry i couldn't make it, i wasn't sure when we were meeting and i scheduled over this a couple days ago

lgessler22:08:31

maybe we could make sure to settle on a particular time for next week?

folcon11:08:26

Sure, based on the request from @U0G3C3USJ I aimed for 4 BST on Wed, same time as the last meeting. Happy to try again next week 😃...

JAtkins16:08:58

Cool, I'll be there too BTW.

JAtkins16:08:48

(but, if I'm not crazy 4pm bst was 1.5 hours ago ...)

Adrian Smith16:08:14

Do you mind if I invite people from https://www.meetup.com/Bristol-Clojurians/events/ndhzsrybclbqb/ ? We're normally starting in 20 minutes

folcon16:08:51

You are right @U5P29DSUS>_<... Ok it's official the heat is getting to me 😞

folcon16:08:03

No problem...

👍 3
folcon16:08:35

Really sorry everyone! It seems I had a complete brain hiccup with regards to time there...

Adrian Smith16:08:55

Check this thread for a call about Fulcro in 12 minutes or so

folcon17:08:03

@UCJCPTW8J are you going to join in as well?

folcon13:08:16

Right, will be picking up in 2 hours I believe 😃... Not sure who's around for today?

JAtkins13:08:36

I’ll try to join. Right in the middle of class though. Hoping the teacher is just on the boring part started Monday :)

3
folcon15:08:46

Ok, this one wrapped up a bit on the earlier side of things 😃... We'll see how things go for next week!

folcon14:08:06

Just a quick heads up, I'm unfortunately a bit too busy to run a session this week, if anyone wants to do do in my stead please feel free :)...

j18:08:28

Hi everyone

Adrian Smith18:08:21

btw this thread is getting a bit lost for new people because of message limits etc

folcon10:08:10

Yes, unfortunately not easy to work with that... I've been recreating it once it's too old...

folcon13:09:30

So I'll be picking up in 1h 45m if anyone want's to join in 😃... To anyone wondering why I'm still using this thread, as long as messages are new it seems to still contain all of the info 😃... Hopefully someone new can tell me if they can't read the older messages...

holyjak13:09:20

Too late unfortunately, that's family time here :(

folcon13:09:55

Ah >_<... I'm beginning to wonder if earlier as before would work better as even though it's harder for US folks they don't join as often anyway...

grischoun14:09:16

I have a meeting before so not sure I’ll be able to join.

JAtkins14:09:34

I got all my classes changed, so I’ll actually be able to make it today

3
Tyler Nisonoff14:09:53

I think I’ll be able to join as well!

3
JAtkins14:09:57

(Maybe 10 or 15 late, just setup a meeting at 5 min before)

folcon12:09:57

Just as a heads up I'm not planning on scheduling one this today, but will be doing so next week if people are available =)...

sifou biri12:09:34

I just heard about this, definitely I’m interested in next week. Thanks for the idea and organization.

3
folcon13:09:13

No problem 😃...

folcon14:09:26

As much as I hate to do this today's just got a few too many things in it for me to run anything today... Will do one next week.

folcon13:09:10

Right, I'm around today for another call in 1.5 hours 😃... I'll post up a link at the time!

JAtkins15:09:39

Welp, I’ll end up missing today. Have fun y’all :)

3
folcon15:09:56

Bit too early? Or late?

JAtkins15:09:13

Fine time for me, just a lot of work stuff

JAtkins15:09:44

Not usually this busy, but today’s a weird day

folcon15:09:46

No problem 😃...

Adrian Smith16:09:36

ah just missed it, we're likely doing a bit of Fulcro tonight at https://www.meetup.com/Bristol-Clojurians/events/ndhzsrybcmbfc/

folcon16:09:03

Sorry, enjoy though 😃!

lgessler02:08:03

@folcon organizes--I think up to this point anyone who's around when the link is posted to the hangout can join. that reminds me, did we settle on a new time?

folcon13:09:30

So I'll be picking up in 1h 45m if anyone want's to join in 😃... To anyone wondering why I'm still using this thread, as long as messages are new it seems to still contain all of the info 😃... Hopefully someone new can tell me if they can't read the older messages...

folcon12:09:57

Just as a heads up I'm not planning on scheduling one this today, but will be doing so next week if people are available =)...