Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to support keyed attributes (#1076)
* Add keys to components * Switched to HashMap for added performance. Fixed issue if their isn't a key on the nodes to not process the list. Issue #479 * Ran cargo fmt. * Deleted the node since we don't need it. Switched to using remove instead of get_mut() to make it so we don't need to do a full scan. Issue #479 * Changed the key data type to Option<String>. Issue #479. * Removed rls config file. * Fixed macro test to add the additional VChild parameter. * Updated the code to handle cases where the root has a key. Nodes with keys are in a hashmap and nodes without are in vector. Added an error if duplicate keys are in the hashmap and outputs the duplicate key. Issue #479 * Updated vlist to have key() attribute. Issue #479 * Updated vlist without a key. * Added a user defined key to vlist. * Removed logging statement. * Made the changes requested. Still need to add macro tests. * Updated the macro tests when the syntax changes. * Ran cargo fmt. * Switched to returning a reference for the key. Removed the key comparision for vtag. * Fixed clippy warning. * Switch to use == to do the comparision to fix clippy error. * Add clippy ignore Co-authored-by: Deep Gaurav <deepgauravraj@gmail.com> Co-authored-by: Justin Starry <justin.starry@icloud.com>
- Loading branch information
1 parent
d716dd0
commit e9de165
Showing
14 changed files
with
231 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ fn compile_pass() { | |
<></> | ||
</> | ||
}; | ||
html! { | ||
<key="key".to_string()> | ||
</> | ||
}; | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.