Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Table component #132

Merged
merged 15 commits into from
May 10, 2016
Merged

Table component #132

merged 15 commits into from
May 10, 2016

Conversation

smogg
Copy link
Contributor

@smogg smogg commented May 4, 2016

Adds some example data and sorted-table from wilson

[]
[:div [:h2 "Table"]])
[state]
(let [state-deref @state
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this get state injected/why isn't this just session state?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If the answer is "for the test"; rebind the state instead)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easier for testing I guess, is there something wrong with this approach?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can't get a parameter wrong if it doesn't exist

@lvh
Copy link
Contributor

lvh commented May 5, 2016

What the heck, codecov.

@lvh lvh closed this May 5, 2016
@lvh lvh reopened this May 5, 2016
This was referenced May 9, 2016
(def isClient (not (nil? (try (.-document js/window)
(catch js/Object e nil)))))

(def rflush r/flush)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this get added here? We just didn't have client tests before today?

You might want to look at the equivalent code in shrieker because it cleans some of this up a little; e.g. not nil? is an antipattern &c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There wasn't much to test before when it comes to actual generated markup and its reactivity. I'll take a look at shrieker, thanks

@lvh lvh merged commit b63a3be into RackSec:master May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants